|
Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
|
#include <include/utils.hpp>
Public Member Functions | |
| bool | has_param (std::string_view key) const |
Check whether a query parameter with key key exists. | |
| std::string | get_param (std::string_view key) const |
Retrieve the first value for query parameter key. | |
Public Attributes | |
| http_method | method |
| HTTP method to use for the request (GET, POST, etc.). | |
| std::string | url |
| Full request URL (excluding query parameters). | |
| parameter_list | query_params |
| parameter_list | form_params |
| std::string | body |
| std::string | content_type |
| Content-Type header value for the request body. | |
| std::string | accept |
| Accept header value indicating expected response format. | |
| int | timeout_sec = -1 |
| Per-request timeout in seconds (-1 for default). | |
| bool | use_form_body { false } |
|
nodiscard |
|
nodiscard |
| std::string corespace::call_preview::accept |
| std::string corespace::call_preview::body |
Raw request body (used for POST requests with non-form content, e.g., JSON or SPARQL).
Definition at line 266 of file utils.hpp.
Referenced by arachnespace::pheidippides::build_call_preview().
| std::string corespace::call_preview::content_type |
Content-Type header value for the request body.
Definition at line 269 of file utils.hpp.
Referenced by arachnespace::pheidippides::build_call_preview().
| parameter_list corespace::call_preview::form_params |
| http_method corespace::call_preview::method |
HTTP method to use for the request (GET, POST, etc.).
Definition at line 256 of file utils.hpp.
Referenced by arachnespace::pheidippides::build_call_preview().
| parameter_list corespace::call_preview::query_params |
| int corespace::call_preview::timeout_sec = -1 |
Per-request timeout in seconds (-1 for default).
Definition at line 272 of file utils.hpp.
Referenced by arachnespace::pheidippides::build_call_preview().
| std::string corespace::call_preview::url |
Full request URL (excluding query parameters).
Definition at line 259 of file utils.hpp.
Referenced by arachnespace::pheidippides::build_call_preview().
| bool corespace::call_preview::use_form_body { false } |
If true, send form_params as the request body; otherwise, use raw body.
Definition at line 273 of file utils.hpp.
Referenced by arachnespace::pheidippides::build_call_preview().