class HTTPClient
Defined at line 64 of file ../../third_party/cobalt/src/public/lib/http_client.h
HTTPClient should implement *either* Post or PostSync, and *either* Get or GetSync. If one is
implemented, the other will be implemented based on the other.
Public Methods
std::future<StatusOr<HTTPResponse>> Post (HTTPRequest request, std::chrono::steady_clock::time_point deadline)
Post an HTTPRequest which will timeout after |timeout_ms| milliseconds.
Defined at line 67 of file ../../third_party/cobalt/src/public/lib/http_client.h
StatusOr<HTTPResponse> PostSync (HTTPRequest request, std::chrono::steady_clock::time_point deadline)
Defined at line 76 of file ../../third_party/cobalt/src/public/lib/http_client.h
std::future<StatusOr<HTTPResponse>> Get (HTTPRequest request, std::chrono::steady_clock::time_point deadline)
Send an HTTP GET request which will timeout after |deadline|.
Defined at line 82 of file ../../third_party/cobalt/src/public/lib/http_client.h
StatusOr<HTTPResponse> GetSync (HTTPRequest request, std::chrono::steady_clock::time_point deadline)
Defined at line 91 of file ../../third_party/cobalt/src/public/lib/http_client.h
void ~HTTPClient ()
Defined at line 96 of file ../../third_party/cobalt/src/public/lib/http_client.h