OpenVPN 3 Core Library
|
#include <httpcli.hpp>
Public Types | |
typedef RCPtr< HTTPDelegate > | Ptr |
![]() | |
typedef RCPtr< HTTPCore > | Ptr |
using | results_type = openvpn_io::ip::tcp::resolver::results_type |
Public Member Functions | |
OPENVPN_EXCEPTION (http_delegate_error) | |
HTTPDelegate (openvpn_io::io_context &io_context, WS::Client::Config::Ptr config, PARENT *parent) | |
void | attach (PARENT *parent) |
void | detach (const bool keepalive, const bool shutdown) |
PARENT * | parent () |
Host | http_host () override |
Request | http_request () override |
ContentInfo | http_content_info () override |
BufferPtr | http_content_out () override |
void | http_content_out_needed () override |
void | http_headers_received () override |
void | http_headers_sent (const Buffer &buf) override |
void | http_mutate_resolver_results (results_type &results) override |
void | http_content_in (BufferAllocated &buf) override |
void | http_done (const int status, const std::string &description) override |
void | http_keepalive_close (const int status, const std::string &description) override |
void | http_post_connect (AsioPolySock::Base &sock) override |
![]() | |
HTTPCore (openvpn_io::io_context &io_context_arg, Config::Ptr config_arg) | |
virtual | ~HTTPCore () |
void | override_timeouts (TimeoutOverride to_arg) |
bool | is_alive () const |
bool | is_link_active () |
bool | is_alt_routing_reset () const |
void | check_ready () const |
void | start_request () |
void | start_request_after (const Time::Duration dur) |
void | stop (const bool shutdown) |
void | abort (const std::string &message, const int status=Status::E_ABORTED) |
const HTTP::Reply & | reply () const |
std::string | remote_endpoint_str () const |
bool | remote_ip_port (IP::Addr &addr, unsigned int &port) const |
Host | host_hint () |
bool | host_match (const std::string &host_arg) const |
AsioPolySock::Base * | get_socket () |
void | alter_general_timeout_for_streaming () |
void | streaming_start () |
void | streaming_restart () |
bool | is_streaming_restartable () const |
bool | is_streaming_hold () const |
![]() | |
void | rr_reset () |
void | reset () |
bool | is_ready () const |
bool | is_websocket () const |
bool | is_deferred () const |
bool | http_in_started () const |
bool | http_out_started () const |
const REQUEST_REPLY::State & | request_reply () const |
const HTTP::HeaderList & | headers () const |
olong | content_length () const |
std::string | ssl_handshake_details () const |
bool | ssl_did_full_handshake () const |
void | ssl_no_cache () |
const CONFIG & | http_config () const |
void | set_async_out (const bool async_out_arg) |
void | http_content_out_finish (BufferPtr buf) |
void | reduce_max_content_bytes (const CONTENT_LENGTH_TYPE new_max_content_bytes) |
![]() | |
virtual | ~TransportClientParent ()=default |
Private Attributes | |
PARENT * | parent_ |
Additional Inherited Members | |
![]() | |
friend | Base |
![]() | |
HTTPBase (const typename CONFIG::Ptr &config_arg) | |
void | http_out_begin () |
void | http_out () |
void | tcp_in (BufferAllocated &b) |
![]() | |
bool | halt = false |
bool | ready = true |
bool | async_out = false |
bool | websocket = false |
CONFIG::Ptr | config |
CONTENT_INFO | content_info |
SSLAPI::Ptr | ssl_sess |
BufferPtr | outbuf |
Frame::Ptr | frame |
SessionStats::Ptr | stats |
Definition at line 1435 of file httpcli.hpp.
typedef RCPtr<HTTPDelegate> openvpn::WS::Client::HTTPDelegate< PARENT >::Ptr |
Definition at line 1440 of file httpcli.hpp.
|
inline |
Definition at line 1442 of file httpcli.hpp.
|
inline |
Definition at line 1450 of file httpcli.hpp.
|
inline |
Definition at line 1455 of file httpcli.hpp.
|
inlineoverridevirtual |
Implements openvpn::WS::Client::HTTPCore.
Definition at line 1528 of file httpcli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::WS::Client::HTTPCore.
Definition at line 1486 of file httpcli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::WS::Client::HTTPCore.
Definition at line 1494 of file httpcli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::WS::Client::HTTPCore.
Definition at line 1502 of file httpcli.hpp.
|
inlineoverridevirtual |
Implements openvpn::WS::Client::HTTPCore.
Definition at line 1534 of file httpcli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::WS::Client::HTTPCore.
Definition at line 1510 of file httpcli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::WS::Client::HTTPCore.
Definition at line 1516 of file httpcli.hpp.
|
inlineoverridevirtual |
Implements openvpn::WS::Client::HTTPCore.
Definition at line 1470 of file httpcli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::WS::Client::HTTPCore.
Definition at line 1540 of file httpcli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::WS::Client::HTTPCore.
Definition at line 1522 of file httpcli.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::WS::Client::HTTPCore.
Definition at line 1546 of file httpcli.hpp.
|
inlineoverridevirtual |
Implements openvpn::WS::Client::HTTPCore.
Definition at line 1478 of file httpcli.hpp.
openvpn::WS::Client::HTTPDelegate< PARENT >::OPENVPN_EXCEPTION | ( | http_delegate_error | ) |
|
inline |
|
private |
Definition at line 1553 of file httpcli.hpp.