InitilizePostArguments() method initializes post arguments.Connect(.) method connects to HTTP Server.VOID ParseURL(LPCTSTR szURL, LPTSTR szProtocol, LPTSTR szAddress, PBYTE pBuffer, DWORD dwBufferLength, DWORD &dwResultSize) Int nMethod = GenericHTTPClient::RequestGetMethod,īOOL RequestOfURI(LPCTSTR szURI, int nMethod =īOOL Response(PBYTE pHeaderBuffer, DWORD dwHeaderBufferLength, VOID AddPostArguments(LPCTSTR szName, LPCTSTR szValue, VOID AddPostArguments(LPCTSTR szName, DWORD nValue) Request (const method &mtd, const utility::string_t &path_query_fragment, const concurrency::streams::istream &body, size_t content_length, const pplx::cancellation_token &token)Unsigned short nPort = INTERNET_DEFAULT_HTTP_PORT, Request (const method &mtd, const utility::string_t &path_query_fragment, const concurrency::streams::istream &body, size_t content_length, const utility::string_t &content_type=_XPLATSTR("application/octet-stream"), const pplx::cancellation_token &token= pplx::cancellation_token::none()) Request (const method &mtd, const utility::string_t &path_query_fragment, const concurrency::streams::istream &body, const pplx::cancellation_token &token) Request (const method &mtd, const utility::string_t &path_query_fragment, const concurrency::streams::istream &body, const utility::string_t &content_type=_XPLATSTR("application/octet-stream"), const pplx::cancellation_token &token= pplx::cancellation_token::none()) Request (const method &mtd, const utf16string &path_query_fragment, const utf16string &body_data, const pplx::cancellation_token &token) Request (const method &mtd, const utf8string &path_query_fragment, utf8string &body_data, const pplx::cancellation_token &token) Request (const method &mtd, const utf8string &path_query_fragment, const utf8string &body_data, const pplx::cancellation_token &token) Assumes the character encoding of the string is UTF-16 will perform conversion to UTF-8. Request (const method &mtd, const utf16string &path_query_fragment, const utf16string &body_data, const utf16string &content_type=:: utility::conversions::to_utf16string("text/plain"), const pplx::cancellation_token &token= pplx::cancellation_token::none())Īsynchronously sends an HTTP request with a string body. Request (const method &mtd, const utf8string &path_query_fragment, utf8string &body_data, const utf8string &content_type="text/plain charset=utf-8", const pplx::cancellation_token &token= pplx::cancellation_token::none()) Assumes the character encoding of the string is UTF-8. Request (const method &mtd, const utf8string &path_query_fragment, const utf8string &body_data, const utf8string &content_type="text/plain charset=utf-8", const pplx::cancellation_token &token= pplx::cancellation_token::none())Īsynchronously sends an HTTP request with a string body. Request (const method &mtd, const utility::string_t &path_query_fragment, const json::value &body_data, const pplx::cancellation_token &token= pplx::cancellation_token::none()) Request (const method &mtd, const utility::string_t &path_query_fragment, const pplx::cancellation_token &token= pplx::cancellation_token::none()) Request (const method &mtd, const pplx::cancellation_token &token= pplx::cancellation_token::none()) Request ( http_request request, const pplx::cancellation_token &token= pplx::cancellation_token::none())Īsynchronously sends an HTTP request. More.Īdd_handler (const std::shared_ptr &stage) More.Īdd_handler (const std::function( http_request, std::shared_ptr)> &handler)Īdds an HTTP pipeline stage to the client. The connection is reference counted with the http_responses. Note the destructor doesn't necessarily close the connection and release resources. Http_client (const uri & base_uri, const http_client_config & client_config) HTTP client class, used to maintain a connection to an HTTP service for an extended session.Ĭreates a new http_client connected to specified uri.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |