62 using Ptr = std::shared_ptr<HttpConnectionEx>;
116 std::vector<sese::net::http::Http2Frame::Ptr>
vector;
121 void close(uint32_t
id);
130 virtual void writeBlocks(
const std::vector<asio::const_buffer> &buffers,
131 const std::function<
void(
const asio::error_code &code)> &
callback) = 0;
138 const std::function<
void(
const asio::error_code &code)> &
callback) = 0;
145 const std::function<
void(
const asio::error_code &code)> &
callback) = 0;
178 uint32_t latest_stream_id,
181 const std::string &msg,
229 using Ptr = std::shared_ptr<HttpConnectionExImpl>;
233 Ptr getPtr() {
return std::reinterpret_pointer_cast<HttpConnectionExImpl>(shared_from_this()); }
240 void writeBlocks(
const std::vector<asio::const_buffer> &buffers,
241 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
243 void writeBlock(
const void *buffer,
size_t size,
244 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
246 void readBlock(
char *buffer,
size_t length,
247 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
253 using Ptr = std::shared_ptr<HttpsConnectionExImpl>;
254 using Stream = asio::ssl::stream<asio::ip::tcp::socket>;
257 Ptr getPtr() {
return std::reinterpret_pointer_cast<HttpsConnectionExImpl>(shared_from_this()); }
264 void writeBlocks(
const std::vector<asio::const_buffer> &buffers,
265 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
267 void writeBlock(
const void *buffer,
size_t size,
268 const std::function<
void(
const asio::error_code &code)> &
callback)
override;
270 void readBlock(
char *buffer,
size_t length,
271 const std::function<
void(
const asio::error_code &code)> &
callback)
override;