26#ifndef ROUTER_SRC_HTTP_INCLUDE_HTTP_CLIENT_CONNECTION_H_
27#define ROUTER_SRC_HTTP_INCLUDE_HTTP_CLIENT_CONNECTION_H_
41template <
typename IOLayer>
54 CNO_CONNECTION_KIND::CNO_CLIENT),
55 payload_{payload_callback} {}
59 const char *data,
const size_t size)
override {
60 payload_->on_input_payload(data,
size);
65 [[maybe_unused]]
const cno_tail_t *tail)
override {
67 payload_->on_input_end();
72 bool send(
const uint32_t *stream_id_ptr,
const int status_code,
73 const std::string &method,
const std::string &
path,
85 const cno_message_t *msg)
override {
86 payload_->on_input_begin(msg->code,
87 std::string{msg->method.data, msg->method.size});
93 for (
const auto &header :
sequence) {
Definition: connection_status_callbacks.h:35
Definition: connection.h:103
Definition: io_buffer.h:41
Definition: connection.h:42
bool send(const uint32_t *stream_id_ptr, const int status_code, const std::string &method, const std::string &path, const Headers &headers, const IOBuffer &data) override
Definition: connection.h:72
int on_cno_message_tail(const uint32_t session_id, const cno_tail_t *tail) override
Definition: connection.h:64
int on_cno_message_body(const uint32_t session_id, const char *data, const size_t size) override
Definition: connection.h:58
PayloadCallback * payload_
Definition: connection.h:104
void on_output_buffer_empty() override
Definition: connection.h:101
Connection(IOLayer s, base::method::Bitset *allowed_method, ConnectionStatusCallbacks *connection_handler, PayloadCallback *payload_callback)
Definition: connection.h:50
int on_cno_message_head(const uint32_t session_id, const cno_message_t *msg) override
Definition: connection.h:84
int on_cno_stream_end(const uint32_t id) override
Definition: connection.h:80
Definition: payload_callback.h:36
Definition: buffer_sequence.h:39
#define HTTP_CLIENT_EXPORT
Definition: http_client_export.h:15
mysql_service_status_t send(const char *tag, const unsigned char *data, const size_t data_length) noexcept
Definition: message_service.cc:33
static char * path
Definition: mysqldump.cc:149
std::bitset< Pos::_LAST+1 > Bitset
Definition: method.h:57
Request::IOBuffer IOBuffer
Definition: request.cc:33
Request::Headers Headers
Definition: request.cc:35
std::string to_string(const T &str)
Convert CNO buffers to strings.
Definition: string.h:42
Definition: connection.h:56
size_t size(const char *const c)
Definition: base64.h:46
Definition: gcs_xcom_synode.h:64
long long sequence(UDF_INIT *initid, UDF_ARGS *args, unsigned char *, unsigned char *)
Definition: udf_example.cc:568