|
A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
|
An HTTP/2 server that dispatches each request to an async handler. More...
#include <cpp/a11/net/http2.h>
Classes | |
| struct | State |
Public Member Functions | |
| ~Http2Server () | |
| absl::Status | Stop () |
| Stops the server and releases its resources. | |
| std::uint16_t | port () const |
| std::string | bind_address () const |
| bool | running () const |
| bool | secure () const |
| void *absl_nullable | GetImpl () const |
Static Public Member Functions | |
| static absl::StatusOr< std::shared_ptr< Http2Server > > | Create (std::string bind_address, std::uint16_t port, Http2RequestHandler handler, Http2Options options={}) |
| Creates and starts an HTTP/2 server. | |
An HTTP/2 server that dispatches each request to an async handler.
The listening endpoint underlying the WebSocket and HTTP SSE server transports; also usable directly for plain HTTP/2 services.
| a11::net::Http2Server::~Http2Server | ( | ) |
| std::string a11::net::Http2Server::bind_address | ( | ) | const |
|
static |
Creates and starts an HTTP/2 server.
| bind_address | Local address to bind to. |
| port | TCP port to listen on; 0 selects an ephemeral port. |
| handler | Async callback invoked for each request. |
| options | Body limits, buffering, deadline, and TLS settings. |
| void *absl_nullable a11::net::Http2Server::GetImpl | ( | ) | const |
| std::uint16_t a11::net::Http2Server::port | ( | ) | const |
| bool a11::net::Http2Server::running | ( | ) | const |
| bool a11::net::Http2Server::secure | ( | ) | const |
| absl::Status a11::net::Http2Server::Stop | ( | ) |
Stops the server and releases its resources.