2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
// author: Max Kellermann <max.kellermann@gmail.com>
|
2019-08-09 16:27:42 +02:00
|
|
|
|
2022-07-01 11:08:20 +02:00
|
|
|
#pragma once
|
2019-08-09 16:27:42 +02:00
|
|
|
|
2022-07-01 11:08:20 +02:00
|
|
|
#include <string_view>
|
2019-08-09 16:27:42 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Find the first query parameter with the given name and return its
|
|
|
|
* raw value (without unescaping).
|
|
|
|
*
|
|
|
|
* @return the raw value (pointing into the #query_string parameter)
|
|
|
|
* or nullptr if the parameter does not exist
|
|
|
|
*/
|
2022-04-26 20:19:31 +02:00
|
|
|
[[gnu::pure]]
|
2022-07-01 11:08:20 +02:00
|
|
|
std::string_view
|
|
|
|
UriFindRawQueryParameter(std::string_view query_string, std::string_view name) noexcept;
|