| 32 | namespace dpp { |
| 33 | |
| 34 | https_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 | |
| 51 | void https_client::connect() |
| 52 | { |
nothing calls this directly
no test coverage detected