27#include <olp/core/CoreApi.h>
28#include <olp/core/http/NetworkSettings.h>
154 RequestBodyType body_;
A network request abstraction for an HTTP request.
Definition NetworkRequest.h:34
const NetworkSettings & GetSettings() const
Gets the network settings for this request.
NetworkRequest & WithUrl(std::string url)
Sets the request URL.
Headers & GetMutableHeaders()
Gets the mutable reference to the HTTP headers.
NetworkRequest & WithSettings(NetworkSettings settings)
Sets network settings for this request.
const Headers & GetHeaders() const
Gets all HTTP headers.
NetworkRequest & WithBody(RequestBodyType body)
Sets the request body.
NetworkRequest & WithVerb(HttpVerb verb)
Sets the HTTP method.
HttpVerb GetVerb() const
Gets the HTTP method.
const std::string & GetUrl() const
Gets the request URL.
std::shared_ptr< const std::vector< std::uint8_t > > RequestBodyType
An alias for the HTTP request body.
Definition NetworkRequest.h:37
HttpVerb
The HTTP method, as specified at https://tools.ietf.org/html/rfc2616.
Definition NetworkRequest.h:40
NetworkRequest & WithHeader(std::string name, std::string value)
Adds an extra HTTP header.
NetworkRequest(std::string url)
Creates the NetworkRequest instance.
RequestBodyType GetBody() const
Gets the request body.
Contains a configuration for the network.
Definition NetworkSettings.h:38
std::vector< Header > Headers
An alias for a vector of the HTTP headers.
Definition NetworkTypes.h:140
Rules all the other namespaces.
Definition AppleSignInProperties.h:24