Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
Loading...
Searching...
No Matches
utils.cpp File Reference
#include "utils.hpp"
#include <algorithm>
#include <stdexcept>
Include dependency graph for utils.cpp:

Go to the source code of this file.

Namespaces

namespace  corespace

Functions

const service_profilecorespace::wdqs_profile ()
http_method corespace::choose_http_method (const sparql_request &request, std::size_t threshold)
 Chooses the appropriate HTTP method for a SPARQL request.
std::string corespace::resolve_accept (const sparql_request &request, const service_profile &profile, std::string_view override_accept)
 Resolves the Accept header value for a SPARQL request.
std::pair< std::string, bool > corespace::resolve_body_strategy (const sparql_request &request)
 Determines the body content and strategy for a SPARQL request.
const service_profilecorespace::get_service_profile (service_kind kind)
 Retrieve the service profile for a given service kind.
void corespace::sort_parameters (parameter_list &params)
 Sorts the parameter list in-place by key.
void corespace::append_common_params (service_kind kind, http_method method, parameter_list &params)
 Appends common parameters required for a service and HTTP method.