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

Public Member Functions | |
| auto | get_header (const std::string &name) const -> std::optional< std::string > |
| Get header value by name. | |
| auto | get_body_string () const -> std::string |
| Get body as string. | |
Public Attributes | |
| int | status_code = 0 |
| HTTP status code. | |
| std::vector< http_header > | headers |
| Response headers. | |
| std::vector< uint8_t > | body |
| Response body. | |
HTTP/2 response data.
Definition at line 46 of file http2_client.h.
| auto kcenon::network::protocols::http2::http2_response::get_body_string | ( | ) | const -> std::string |
Get body as string.
Definition at line 38 of file http2_client.cpp.
References body.
| auto kcenon::network::protocols::http2::http2_response::get_header | ( | const std::string & | name | ) | const -> std::optional<std::string> |
Get header value by name.
| name | Header name (case-insensitive) |
Definition at line 17 of file http2_client.cpp.
References kcenon::network::protocols::http2::headers.
| std::vector<uint8_t> kcenon::network::protocols::http2::http2_response::body |
Response body.
Definition at line 50 of file http2_client.h.
Referenced by get_body_string(), kcenon::network::protocols::http2::http2_client::handle_data_frame(), and kcenon::network::protocols::http2::http2_client::handle_headers_frame().
| std::vector<http_header> kcenon::network::protocols::http2::http2_response::headers |
Response headers.
Definition at line 49 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_client::handle_data_frame(), and kcenon::network::protocols::http2::http2_client::handle_headers_frame().
| int kcenon::network::protocols::http2::http2_response::status_code = 0 |
HTTP status code.
Definition at line 48 of file http2_client.h.
Referenced by kcenon::network::protocols::http2::http2_client::handle_data_frame(), kcenon::network::protocols::http2::http2_client::handle_goaway_frame(), kcenon::network::protocols::http2::http2_client::handle_headers_frame(), and kcenon::network::protocols::http2::http2_client::handle_rst_stream_frame().