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.
Namespaces | Classes | Typedefs | Functions
web::http Namespace Reference

Declarations and functionality for the HTTP protocol. More...

Namespaces

 client
 HTTP client side library.
 
 experimental
 HTTP listener is currently in beta.
 
 message_direction
 Message direction.
 
 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...
 

Detailed Description

Declarations and functionality for the HTTP protocol.

Typedef Documentation

typedef utility::string_t web::http::method

Predefined method strings for the standard HTTP methods mentioned in the HTTP 1.1 specification.

Function Documentation

template<typename key_type , typename _t >
bool web::http::bind ( const key_type &  text,
_t &  ref 
)

Binds an individual reference to a string value.

Template Parameters
key_typeThe type of string value.
_tThe type of the value to bind to.
Parameters
textThe string value.
refThe value to bind to.
Returns
true if the binding succeeds, false otherwise.
template<typename key_type >
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.

Template Parameters
key_typeThe type of the string value.
Parameters
textThe string value.
refThe value to bind to.
Returns
true if the binding succeeds, false otherwise.