#include <http_session.h>
|
| | HttpSession (HttpServer *server, SslSocket *sock, bool async_ready=true) |
| |
| virtual | ~HttpSession () |
| |
| const std::string | get_context () |
| |
| void | AcceptSession () |
| |
| void | RegisterEventCb (SessionEventCb cb) |
| |
| | SslSession (SslServer *server, SslSocket *socket, bool async_read_ready=true) |
| |
| virtual Socket * | socket () const |
| |
| void | TriggerSslHandShake (SslHandShakeCallbackHandler) |
| |
| bool | IsSslDisabled () |
| |
| bool | IsSslHandShakeDelayed () |
| |
| bool | IsSslHandShakeSuccess () |
| |
| bool | IsSslHandShakeSuccessLocked () |
| |
| bool | IsSslHandShakeInProgress () |
| |
| void | SetSslHandShakeInProgress (bool state) |
| |
| | TcpSession (TcpServer *server, Socket *socket, bool async_read_ready=true, size_t buffer_send_size=TcpSession::kDefaultWriteBufferSize) |
| |
| virtual bool | Send (const uint8_t *data, size_t size, size_t *sent) |
| |
| virtual bool | Connected (Endpoint remote) |
| |
| virtual void | Accepted () |
| |
| void | ConnectFailed () |
| |
| void | Close () |
| |
| virtual std::string | ToString () const |
| |
| NativeSocketType | sock_descriptor () |
| |
| TcpServer * | server () |
| |
| int32_t | local_port () const |
| |
| int32_t | remote_port () const |
| |
| void | set_observer (EventObserver observer) |
| |
| virtual void | ReleaseBuffer (Buffer buffer) |
| |
| virtual int | GetSessionInstance () const |
| |
| bool | IsEstablished () const |
| |
| bool | IsClosed () const |
| |
| bool | IsServerSession () |
| |
| Endpoint | remote_endpoint () const |
| |
| const std::string & | remote_addr_string () const |
| |
| Endpoint | local_endpoint () const |
| |
| const boost::system::error_code & | close_reason () const |
| |
| virtual boost::system::error_code | SetSocketOptions () |
| |
| void | set_read_on_connect (bool read) |
| |
| void | SessionEstablished (Endpoint remote, Direction direction) |
| |
| virtual void | AsyncReadStart () |
| |
| virtual void | SetDeferReader (bool defer_reader) |
| |
| virtual bool | IsReaderDeferred () const |
| |
| const io::SocketStats & | GetSocketStats () const |
| |
| void | GetRxSocketStats (SocketIOStats *socket_stats) const |
| |
| void | GetTxSocketStats (SocketIOStats *socket_stats) const |
| |
| void | GetRxSocketStats (SocketIOStats &socket_stats) const |
| |
| void | GetTxSocketStats (SocketIOStats &socket_stats) const |
| |
| int | SetMd5SocketOption (uint32_t peer_ip, const std::string &md5_password) |
| |
| int | ClearMd5SocketOption (uint32_t peer_ip) |
| |
| int | SetDscpSocketOption (uint8_t value) |
| |
| uint8_t | GetDscpValue () const |
| |
| const std::string & | ToUVEKey () const |
| |
| boost::system::error_code | SetTcpNoDelay () |
| |
| boost::system::error_code | SetTcpSendBufSize (uint32_t size) |
| |
| boost::system::error_code | SetTcpRecvBufSize (uint32_t size) |
| |
Definition at line 133 of file http_session.cc.
◆ HttpSessionPtr
◆ map_type
◆ SessionEventCb
◆ HttpSession()
◆ ~HttpSession()
| HttpSession::~HttpSession |
( |
| ) |
|
|
virtual |
◆ AcceptSession()
| void HttpSession::AcceptSession |
( |
| ) |
|
◆ DISALLOW_COPY_AND_ASSIGN()
◆ get_client_context() [1/2]
| const std::string HttpSession::get_client_context |
( |
| ) |
|
|
inlineprivate |
◆ get_client_context() [2/2]
| static std::string HttpSession::get_client_context |
( |
std::string const & |
s | ) |
|
|
inlinestatic |
◆ get_context()
| const std::string HttpSession::get_context |
( |
| ) |
|
|
inline |
◆ GetMap()
| static map_type* HttpSession::GetMap |
( |
| ) |
|
|
inlinestaticprivate |
◆ GetPendingTaskCount()
| static tbb::atomic<long> HttpSession::GetPendingTaskCount |
( |
| ) |
|
|
inlinestatic |
◆ GetSession()
| static HttpSessionPtr HttpSession::GetSession |
( |
std::string const & |
s | ) |
|
|
inlinestaticprivate |
◆ OnRead()
| void HttpSession::OnRead |
( |
Buffer |
buffer | ) |
|
|
protectedvirtual |
◆ OnSessionEvent()
◆ RegisterEventCb()
◆ SendSession()
| static bool HttpSession::SendSession |
( |
std::string const & |
s, |
|
|
const uint8_t * |
data, |
|
|
size_t |
size, |
|
|
size_t * |
sent |
|
) |
| |
|
inlinestatic |
◆ set_client_context() [1/2]
| void HttpSession::set_client_context |
( |
const std::string & |
client_ctx | ) |
|
|
inlineprivate |
◆ set_client_context() [2/2]
| static bool HttpSession::set_client_context |
( |
std::string const & |
s, |
|
|
const std::string & |
ctx |
|
) |
| |
|
inlinestatic |
◆ client_context_str_
| std::string HttpSession::client_context_str_ |
|
private |
◆ context_map_
◆ context_str_
| std::string HttpSession::context_str_ |
|
private |
◆ event_cb_
◆ map_mutex_
| tbb::mutex HttpSession::map_mutex_ |
|
staticprivate |
◆ OnBody
◆ OnHeaderField
| HttpSession::OnHeaderField |
◆ OnHeadersComplete
| HttpSession::OnHeadersComplete |
◆ OnHeaderValue
| HttpSession::OnHeaderValue |
◆ OnMessageBegin
| HttpSession::OnMessageBegin |
◆ OnStatusComplete
| HttpSession::OnStatusComplete |
◆ OnUrl
◆ req_handler_task_id_
| int HttpSession::req_handler_task_id_ = -1 |
|
staticprivate |
◆ req_queue_empty_
| tbb::atomic<bool> HttpSession::req_queue_empty_ |
|
private |
◆ request_builder_
◆ request_queue_
| tbb::concurrent_queue<HttpRequest *> HttpSession::request_queue_ |
|
private |
◆ task_count_
| tbb::atomic< long > HttpSession::task_count_ |
|
staticprivate |
The documentation for this class was generated from the following files: