http_client Class

Visual Studio 2013

HTTP client class, used to maintain a connection to an HTTP service for an extended session.

Caution note Caution

This topic contains information for the C++ REST SDK 1.0 (codename "Casablanca"). If you are using a later version from the Codeplex Casablanca web page, then use the local documentation at http://casablanca.codeplex.com/documentation.

class http_client;

Name

Description

http_client::http_client Constructor

Overloaded. Creates a new http_client connected to specified uri.

http_client::~http_client Destructor

Note the destructor doesn't necessarily close the connection and release resources. The connection is reference counted with the http_responses.

Name

Description

http_client::add_handler Method

Overloaded. Add an HTTP pipeline stage to the client.

http_client::client_config Method

Get client configuration object

http_client::request Method

Overloaded. Asynchronously sends an HTTP request.

Header: http_client.h, http_msg.h

Namespace: web::http::client

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft