|
A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
|
A pull-oriented HTTP/2 response body stream. More...
#include <cpp/a11/net/http2.h>
Classes | |
| struct | State |
Public Member Functions | |
| a11::Future< HttpResponseHead > | Headers () const |
| a11::Future< std::optional< std::string > > | Read () |
| a11::Task | Done () const |
| absl::Status | Cancel (absl::Status status=absl::CancelledError("HTTP/2 request cancelled")) |
| Cancels the response stream with the given status. | |
| std::int32_t | stream_id () const |
Friends | |
| class | Http2Connection |
| class | Http2Client |
A pull-oriented HTTP/2 response body stream.
Read() returns nullopt after a clean END_STREAM. Only one outstanding Read() is permitted, which provides a bounded handoff from the libuv thread to fibers and ordinary threads.
| absl::Status a11::net::Http2ResponseStream::Cancel | ( | absl::Status | status = absl::CancelledError("HTTP/2 request cancelled") | ) |
Cancels the response stream with the given status.
| a11::Task a11::net::Http2ResponseStream::Done | ( | ) | const |
| a11::Future< HttpResponseHead > a11::net::Http2ResponseStream::Headers | ( | ) | const |
| a11::Future< std::optional< std::string > > a11::net::Http2ResponseStream::Read | ( | ) |
| std::int32_t a11::net::Http2ResponseStream::stream_id | ( | ) | const |
|
friend |
|
friend |