#include <HttpConnectionEx.h>
|
| Ptr | getPtr () |
| |
| | HttpsConnectionExImpl (const std::shared_ptr< HttpServiceImpl > &service, asio::io_context &context, const sese::net::IPAddress::Ptr &addr, SharedStream stream) |
| |
| void | writeBlocks (const std::vector< asio::const_buffer > &buffers, const std::function< void(const asio::error_code &code)> &callback) override |
| |
| void | writeBlock (const void *buffer, size_t size, const std::function< void(const asio::error_code &code)> &callback) override |
| |
| void | readBlock (char *buffer, size_t length, const std::function< void(const asio::error_code &code)> &callback) override |
| |
| void | checkKeepalive () override |
| |
| Ptr | getPtr () |
| |
| | HttpConnectionEx (const std::shared_ptr< HttpServiceImpl > &service, asio::io_context &io_context, const sese::net::IPAddress::Ptr &addr) |
| |
| virtual | ~HttpConnectionEx ()=default |
| |
| void | close (uint32_t id) |
| |
| void | disponse () |
| |
| void | readMagic () |
| |
| void | readFrameHeader () |
| |
| void | handleFrameHeader () |
| |
| uint8_t | handleSettingsFrame () |
| |
| void | handleWindowUpdate () |
| |
| void | handleRstStreamFrame () |
| |
| void | handleGoawayFrame () |
| |
| void | handleHeadersFrame () |
| |
| void | handleDataFrame () |
| |
| void | handlePriorityFrame () |
| |
| void | handlePingFrame () |
| |
| void | handleRequest (const HttpStream::Ptr &stream) |
| |
| void | handleWrite () |
| |
| void | writeSettingsFrame () |
| |
| void | writeAckFrame () |
| |
| void | writeGoawayFrame (uint32_t latest_stream_id, uint8_t flags, uint32_t error_code, const std::string &msg, bool once=false) |
| |
| void | writeRstStreamFrame (uint32_t stream_id, uint8_t flags, uint32_t error_code, bool once=false) |
| |
| void | writeWindowUpdateFrame (uint32_t stream_id, uint8_t flags, uint32_t window_size) |
| |
| bool | writeHeadersFrame (const HttpStream::Ptr &stream, bool verify_end_stream=true) |
| |
| bool | writeDataFrame4Body (const HttpStream::Ptr &stream) |
| |
| bool | writeDataFrame4SingleRange (const HttpStream::Ptr &stream) |
| |
| bool | writeDataFrame4Ranges (const HttpStream::Ptr &stream) |
| |
| void | writeSubheaderAndData (const HttpStream::Ptr &stream, const std::string &subheader, size_t remind) |
| |
◆ Ptr
◆ SharedStream
◆ Stream
◆ HttpsConnectionExImpl()
◆ checkKeepalive()
| void sese::internal::service::http::HttpsConnectionExImpl::checkKeepalive |
( |
| ) |
|
|
overridevirtual |
◆ getPtr()
| Ptr sese::internal::service::http::HttpsConnectionExImpl::getPtr |
( |
| ) |
|
|
inline |
◆ readBlock()
| void sese::internal::service::http::HttpsConnectionExImpl::readBlock |
( |
char * | buffer, |
|
|
size_t | length, |
|
|
const std::function< void(const asio::error_code &code)> & | callback ) |
|
overridevirtual |
Read block function. This function ensures that the specified size of the buffer is completely read, and calls back immediately if an error occurs
- Parameters
-
| buffer | Pointer to the buffer |
| length | Size of the buffer |
| callback | Completion callback function |
Implements sese::internal::service::http::HttpConnectionEx.
References read().
◆ writeBlock()
| void sese::internal::service::http::HttpsConnectionExImpl::writeBlock |
( |
const void * | buffer, |
|
|
size_t | size, |
|
|
const std::function< void(const asio::error_code &code)> & | callback ) |
|
overridevirtual |
Write block function. This function ensures that a single block of buffer is completely written, and calls back immediately if an error occurs
- Parameters
-
| buffer | Single block buffer |
| size | Size of the buffer |
| callback | Completion callback function |
Implements sese::internal::service::http::HttpConnectionEx.
◆ writeBlocks()
| void sese::internal::service::http::HttpsConnectionExImpl::writeBlocks |
( |
const std::vector< asio::const_buffer > & | buffers, |
|
|
const std::function< void(const asio::error_code &code)> & | callback ) |
|
overridevirtual |
Write block function. This function ensures that the specified buffer is completely written, and calls back immediately if an error occurs
- Parameters
-
| buffers | Buffer |
| callback | Completion callback function |
Implements sese::internal::service::http::HttpConnectionEx.
◆ stream
| SharedStream sese::internal::service::http::HttpsConnectionExImpl::stream |
The documentation for this struct was generated from the following files: