|
A request message from a client to a server. More...
#include <http.hpp>
Public Member Functions | |
Request (HttpMethod httpMethod, Url url, Azure::Core::IO::BodyStream *bodyStream, bool shouldBufferResponse) | |
Construct an Azure::Core::Http::Request. More... | |
Request (HttpMethod httpMethod, Url url, Azure::Core::IO::BodyStream *bodyStream) | |
Constructs a Request . More... | |
Request (HttpMethod httpMethod, Url url, bool shouldBufferResponse) | |
Constructs a Request . More... | |
Request (HttpMethod httpMethod, Url url) | |
Constructs a Request . More... | |
void | SetHeader (std::string const &name, std::string const &value) |
Set an HTTP header to the Azure::Core::Http::Request. More... | |
Azure::Nullable< std::string > | GetHeader (std::string const &name) |
Gets a specific HTTP header from an Azure::Core::Http::Request. More... | |
void | RemoveHeader (std::string const &name) |
Remove an HTTP header. More... | |
HttpMethod const & | GetMethod () const |
Get HttpMethod. More... | |
CaseInsensitiveMap | GetHeaders () const |
Get HTTP headers. More... | |
Azure::Core::IO::BodyStream * | GetBodyStream () |
Get HTTP body as Azure::Core::IO::BodyStream. More... | |
bool | ShouldBufferResponse () |
A value indicating whether the returned raw response for this request will be buffered within a memory buffer or if it will be returned as a body stream instead. | |
Url & | GetUrl () |
Get URL. More... | |
Url const & | GetUrl () const |
Get URL. More... | |
Includes, within the first line of the message, the HttpMethod to be applied to the resource, the URL of the resource, and the protocol version in use.
|
inlineexplicit |
httpMethod | HttpMethod. |
url | Request URL. |
bodyStream | Azure::Core::IO::BodyStream. |
shouldBufferResponse | A boolean value indicating whether the returned response should be buffered or returned as a body stream instead. |
|
inlineexplicit |
httpMethod | HTTP method. |
url | Request URL. |
bodyStream | Azure::Core::IO::BodyStream. |
|
explicit |
httpMethod | HTTP method. |
url | Request URL. |
shouldBufferResponse | A boolean value indicating whether the returned response should be buffered or returned as a body stream instead. |
|
explicit |
httpMethod | HTTP method. |
url | Request URL. |
|
inline |
Azure::Nullable< std::string > Request::GetHeader | ( | std::string const & | name | ) |
name | The name for the header to be retrieved. |
if | name is an invalid header key. |
Azure::Core::CaseInsensitiveMap Request::GetHeaders | ( | ) | const |
HttpMethod const & Request::GetMethod | ( | ) | const |
|
inline |
|
inline |
void Request::RemoveHeader | ( | std::string const & | name | ) |
name | HTTP header name. |
void Request::SetHeader | ( | std::string const & | name, |
std::string const & | value | ||
) |
name | The name for the header to be set or added. |
value | The value for the header to be set or added. |
if | name is an invalid header key. |