|
Symbian platform (C++)
SDK native APIs, runtime and tooling
|
Bounded, I/O-free single-exchange nghttp2 connection. More...
#include <cpp/symbian/http/http2.h>
Classes | |
| struct | State |
Public Member Functions | |
| ~Http2 () | |
| absl::Status | Feed (std::string_view bytes) |
| absl::StatusOr< std::string > | TakeOutput () |
| absl::Status | SendRequest (RequestHead head) |
| absl::Status | SendHeaders (ResponseHead head) |
| absl::Status | Write (std::string_view bytes) |
| absl::Status | Finish () |
| absl::StatusOr< std::optional< std::string > > | Read () |
| bool | headers_received () const |
| bool | ended () const |
| bool | peer_settings_received () const |
| bool | peer_connect_enabled () const |
| const RequestHead & | request () const |
| const ResponseHead & | response () const |
| const Headers & | trailers () const |
| std::size_t | buffered_amount () const |
| void | Abort () |
Static Public Member Functions | |
| static absl::StatusOr< std::unique_ptr< Http2 > > | Create (Role role, Limits limits={}) |
Bounded, I/O-free single-exchange nghttp2 connection.
Shared HTTP DATA primitive for ordinary HTTP and RFC 8441 WebSockets. Feed arbitrary transport chunks; drain TakeOutput before reading transport. Read returns an empty optional while no DATA is available; ended() separately identifies clean END_STREAM. Reading releases flow-control credit. Write and Finish operate independently of the read half for duplex CONNECT. Header and DATA errors are terminal. No sockets, callbacks into Python, or scheduler are owned here. Only one request is supported per connection.
|
default |
| void symbian::http::Http2::Abort | ( | ) |
| std::size_t symbian::http::Http2::buffered_amount | ( | ) | const |
|
static |
| bool symbian::http::Http2::ended | ( | ) | const |
| absl::Status symbian::http::Http2::Feed | ( | std::string_view | bytes | ) |
| absl::Status symbian::http::Http2::Finish | ( | ) |
| bool symbian::http::Http2::headers_received | ( | ) | const |
| bool symbian::http::Http2::peer_connect_enabled | ( | ) | const |
| bool symbian::http::Http2::peer_settings_received | ( | ) | const |
| absl::StatusOr< std::optional< std::string > > symbian::http::Http2::Read | ( | ) |
| const RequestHead & symbian::http::Http2::request | ( | ) | const |
| const ResponseHead & symbian::http::Http2::response | ( | ) | const |
| absl::Status symbian::http::Http2::SendHeaders | ( | ResponseHead | head | ) |
| absl::Status symbian::http::Http2::SendRequest | ( | RequestHead | head | ) |
| absl::StatusOr< std::string > symbian::http::Http2::TakeOutput | ( | ) |
| const Headers & symbian::http::Http2::trailers | ( | ) | const |
| absl::Status symbian::http::Http2::Write | ( | std::string_view | bytes | ) |