62 using Ptr = std::shared_ptr<HttpConnectionEx>;
117 std::vector<sese::net::http::Http2Frame::Ptr>
vector;
122 void close(uint32_t
id);
132 virtual void writeBlocks(
const std::vector<asio::const_buffer> &buffers,
133 const std::function<
void(
const asio::error_code &code)> &
callback) = 0;
141 const std::function<
void(
const asio::error_code &code)> &
callback) = 0;
149 const std::function<
void(
const asio::error_code &code)> &
callback) = 0;
182 uint32_t latest_stream_id,
185 const std::string &msg,
233 using Ptr = std::shared_ptr<HttpConnectionExImpl>;
237 Ptr getPtr() {
return std::reinterpret_pointer_cast<HttpConnectionExImpl>(shared_from_this()); }
244 void writeBlocks(
const std::vector<asio::const_buffer> &buffers,
245 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
247 void writeBlock(
const void *buffer,
size_t size,
248 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
250 void readBlock(
char *buffer,
size_t length,
251 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
257 using Ptr = std::shared_ptr<HttpsConnectionExImpl>;
258 using Stream = asio::ssl::stream<asio::ip::tcp::socket>;
261 Ptr getPtr() {
return std::reinterpret_pointer_cast<HttpsConnectionExImpl>(shared_from_this()); }
268 void writeBlocks(
const std::vector<asio::const_buffer> &buffers,
269 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
271 void writeBlock(
const void *buffer,
size_t size,
272 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
274 void readBlock(
char *buffer,
size_t length,
275 const std::function<
void(
const asio::error_code &code)> &
callback)
override;