nxt/http.hpp file

Namespaces

namespace nxt
namespace nxt::http

Classes

struct nxt::http::header
HTTP header name/value pair.
struct nxt::http::response_head
Parsed HTTP response start line and headers.
struct nxt::http::request
Minimal HTTP request representation.
struct nxt::http::server_sent_event
Parsed server-sent event.
struct nxt::http::parse_error
Error raised for malformed HTTP or SSE data.
class nxt::http::server_sent_event_parser
Incremental parser for server-sent event text.

Functions

auto serialize(const request& req) →  std::string
Serialize a request to HTTP/1.1 bytes.