|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
HTTP/2 stream state and data. More...
#include <http2_client.h>

Public Member Functions | |
| http2_stream ()=default | |
| http2_stream (http2_stream &&)=default | |
| http2_stream & | operator= (http2_stream &&)=default |
Public Attributes | |
| uint32_t | stream_id = 0 |
| Stream identifier. | |
| stream_state | state = stream_state::idle |
| Current state. | |
| std::vector< http_header > | request_headers |
| Request headers. | |
| std::vector< http_header > | response_headers |
| Response headers. | |
| std::vector< uint8_t > | request_body |
| Request body. | |
| std::vector< uint8_t > | response_body |
| Response body. | |
| int32_t | window_size = 65535 |
| Flow control window. | |
| std::promise< http2_response > | promise |
| Response promise. | |
| bool | headers_complete = false |
| Headers fully received. | |
| bool | body_complete = false |
| Body fully received. | |
| bool | is_streaming = false |
| Streaming support. | |
| std::function< void(std::vector< uint8_t >)> | on_data |
| Callback for streaming data. | |
| std::function< void(std::vector< http_header >)> | on_headers |
| Callback for headers. | |
| std::function< void(int)> | on_complete |
| Callback when stream ends (status code) | |
HTTP/2 stream state and data.
Definition at line 70 of file http2_client.h.
|
default |
|
default |
|
default |
| bool kcenon::network::protocols::http2::http2_stream::body_complete = false |
Body fully received.
Definition at line 81 of file http2_client.h.
| bool kcenon::network::protocols::http2::http2_stream::headers_complete = false |
Headers fully received.
Definition at line 80 of file http2_client.h.
| bool kcenon::network::protocols::http2::http2_stream::is_streaming = false |
Streaming support.
Whether this is a streaming request
Definition at line 84 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_client::start_stream().
| std::function<void(int)> kcenon::network::protocols::http2::http2_stream::on_complete |
Callback when stream ends (status code)
Definition at line 87 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_client::start_stream().
| std::function<void(std::vector<uint8_t>)> kcenon::network::protocols::http2::http2_stream::on_data |
Callback for streaming data.
Definition at line 85 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_client::start_stream().
| std::function<void(std::vector<http_header>)> kcenon::network::protocols::http2::http2_stream::on_headers |
Callback for headers.
Definition at line 86 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_client::start_stream().
| std::promise<http2_response> kcenon::network::protocols::http2::http2_stream::promise |
Response promise.
Definition at line 79 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_client::send_request().
| std::vector<uint8_t> kcenon::network::protocols::http2::http2_stream::request_body |
Request body.
Definition at line 76 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_server_connection::dispatch_request(), and kcenon::network::protocols::http2::http2_client::send_request().
| std::vector<http_header> kcenon::network::protocols::http2::http2_stream::request_headers |
Request headers.
Definition at line 74 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_server_connection::dispatch_request(), kcenon::network::protocols::http2::http2_client::send_request(), and kcenon::network::protocols::http2::http2_client::start_stream().
| std::vector<uint8_t> kcenon::network::protocols::http2::http2_stream::response_body |
Response body.
Definition at line 77 of file http2_client.h.
| std::vector<http_header> kcenon::network::protocols::http2::http2_stream::response_headers |
Response headers.
Definition at line 75 of file http2_client.h.
| stream_state kcenon::network::protocols::http2::http2_stream::state = stream_state::idle |
Current state.
Definition at line 73 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_server_connection::get_or_create_stream(), kcenon::network::protocols::http2::http2_client::send_request(), and kcenon::network::protocols::http2::http2_client::start_stream().
| uint32_t kcenon::network::protocols::http2::http2_stream::stream_id = 0 |
Stream identifier.
Definition at line 72 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_server_connection::get_or_create_stream(), kcenon::network::protocols::http2::http2_client::send_request(), and kcenon::network::protocols::http2::http2_client::start_stream().
| int32_t kcenon::network::protocols::http2::http2_stream::window_size = 65535 |
Flow control window.
Definition at line 78 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_server_connection::get_or_create_stream().