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 & WithVerb(HttpVerb verb)
Sets the HTTP method.
Headers & GetMutableHeaders()
Gets the mutable reference to the HTTP headers.
NetworkRequest & WithSettings(NetworkSettings settings)
Sets network settings for this request.
HttpVerb GetVerb() const
Gets the HTTP method.
const Headers & GetHeaders() const
Gets all HTTP headers.
NetworkRequest & WithHeader(std::string name, std::string value)
Adds an extra HTTP header.
std::shared_ptr< const std::vector< std::uint8_t > > RequestBodyType
An alias for the HTTP request body.
Definition: NetworkRequest.h:37
NetworkRequest & WithBody(RequestBodyType body)
Sets the request body.
const std::string & GetUrl() const
Gets the request URL.
HttpVerb
The HTTP method, as specified at https://tools.ietf.org/html/rfc2616.
Definition: NetworkRequest.h:40
NetworkRequest(std::string url)
Creates the NetworkRequest instance.
RequestBodyType GetBody() const
Gets the request body.
NetworkRequest & WithUrl(std::string url)
Sets the request URL.
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