|
| Connection (asio::io_context &ctx, const bool ssl=true, std::shared_ptr< log::Logger > l={}) |
|
| Connection (asio::io_context &ctx, std::shared_ptr< dht::crypto::Certificate > server_ca, const dht::crypto::Identity &identity, std::shared_ptr< log::Logger > l={}) |
|
unsigned int | id () const |
|
bool | is_open () const |
|
bool | is_ssl () const |
|
void | checkOcsp (bool check=true) |
|
void | set_ssl_verification (const std::string &hostname, const asio::ssl::verify_mode verify_mode) |
|
asio::streambuf & | input () |
|
std::istream & | data () |
|
std::string | read_bytes (size_t bytes=0) |
|
std::string | read_until (const char delim) |
|
void | async_connect (std::vector< asio::ip::tcp::endpoint > &&endpoints, ConnectHandlerCb) |
|
void | async_handshake (HandlerCb cb) |
|
void | async_write (BytesHandlerCb cb) |
|
void | async_read_until (const char *delim, BytesHandlerCb cb) |
|
void | async_read_until (char delim, BytesHandlerCb cb) |
|
void | async_read (size_t bytes, BytesHandlerCb cb) |
|
void | async_read_some (size_t bytes, BytesHandlerCb cb) |
|
void | set_keepalive (uint32_t seconds) |
|
const asio::ip::address & | local_address () const |
|
void | timeout (const std::chrono::seconds &timeout, HandlerCb cb={}) |
|
void | close () |
|
Definition at line 87 of file http.h.
◆ checkOcsp()
void dht::http::Connection::checkOcsp |
( |
bool | check = true | ) |
|
|
inline |
◆ data()
std::istream & dht::http::Connection::data |
( |
| ) |
|
|
inline |
◆ id()
unsigned int dht::http::Connection::id |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file:
- /home/iurt/rpmbuild/BUILD/opendht-3.2.0/include/opendht/http.h