C++ Rest SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
|
Declarations and functionality for the HTTP protocol. More...
Namespaces | |
client | |
HTTP client side library. | |
experimental | |
HTTP listener is currently in beta. | |
oauth1 | |
oAuth 1.0 library. | |
oauth2 | |
oAuth 2.0 library. | |
Classes | |
class | header_names |
Constants for the HTTP headers mentioned in RFC 2616. More... | |
class | http_exception |
Represents an HTTP error. This class holds an error message and an optional error code. More... | |
class | http_headers |
Represents HTTP headers, acts like a map. More... | |
class | http_pipeline |
class | http_pipeline_stage |
HTTP client handler class, used to represent an HTTP pipeline stage. More... | |
class | http_request |
Represents an HTTP request. More... | |
class | http_response |
Represents an HTTP response. More... | |
struct | http_status_to_phrase |
class | methods |
Common HTTP methods. More... | |
class | status_codes |
Predefined values for all of the standard HTTP 1.1 response status codes. More... | |
Typedefs | |
typedef utility::string_t | method |
Predefined method strings for the standard HTTP methods mentioned in the HTTP 1.1 specification. More... | |
typedef unsigned short | status_code |
typedef utility::string_t | reason_phrase |
typedef std::function< void(message_direction::direction, utility::size64_t)> | progress_handler |
Functions | |
template<typename key_type , typename _t > | |
bool | bind (const key_type &text, _t &ref) |
Binds an individual reference to a string value. More... | |
template<typename key_type > | |
bool | bind (const key_type &text, utility::string_t &ref) |
Binds an individual reference to a string value. This specialization is need because istringstream::>> delimits on whitespace. More... | |
Declarations and functionality for the HTTP protocol.
typedef utility::string_t web::http::method |
Predefined method strings for the standard HTTP methods mentioned in the HTTP 1.1 specification.
bool web::http::bind | ( | const key_type & | text, |
_t & | ref | ||
) |
Binds an individual reference to a string value.
key_type | The type of string value. |
_t | The type of the value to bind to. |
text | The string value. |
ref | The value to bind to. |
true
if the binding succeeds, false
otherwise.bool web::http::bind | ( | const key_type & | text, |
utility::string_t & | ref | ||
) |
Binds an individual reference to a string value. This specialization is need because istringstream::>>
delimits on whitespace.
key_type | The type of the string value. |
text | The string value. |
ref | The value to bind to. |
true
if the binding succeeds, false
otherwise.