MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / https_client

Method https_client

src/dpp/httpsclient.cpp:34–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace dpp {
33
34https_client::https_client(cluster* creator, const std::string &hostname, uint16_t port, const std::string &urlpath, const std::string &verb, const std::string &req_body, const http_headers& extra_headers, bool plaintext_connection, uint16_t request_timeout, const std::string &protocol, https_client_completion_event done)
35 : ssl_connection(creator, hostname, std::to_string(port), plaintext_connection, false),
36 request_type(verb),
37 path(urlpath),
38 request_body(req_body),
39 content_length(0),
40 request_headers(extra_headers),
41 status(0),
42 http_protocol(protocol),
43 timeout(time(nullptr) + request_timeout),
44 timed_out(false),
45 completed(done),
46 state(HTTPS_HEADERS)
47{
48 https_client::connect();
49}
50
51void https_client::connect()
52{

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected