Share via


http_client::http_client Constructor

Creates a new http_client connected to specified uri.

_ASYNCRTIMP http_client(
   const uri &base_uri
);

_ASYNCRTIMP http_client(
   const uri &base_uri,
   const http_client_config& client_config
);

Parameters

  • base_uri
    A string representation of the base uri to be used for all requests. Must start with either "http://" or "https://"

  • client_config
    The http client configuration object containing the possible configuration options to intitialize the http_client.

Requirements

Header: http_client.h

Namespace: web::http::client

See Also

Reference

http_client Class