microserve::detail::H1SecureSession class

HTTP/1.1 session over TLS.

Same keep-alive loop as Http1Session, with optional Alt-Svc advertisement so clients can discover HTTP/3.

Constructors, destructors, conversion operators

H1SecureSession(ssl_stream_tcp stream, Handler& h, Config::TimeoutConfig& t, const int verbosity, const unsigned short alt_svc_port = 0)
Construct a TLS HTTP/1.1 session.

Public functions

void start()
Start the request/response loop.
void stop()
Cancel outstanding operations and close the TLS socket.

Function documentation

microserve::detail::H1SecureSession::H1SecureSession(ssl_stream_tcp stream, Handler& h, Config::TimeoutConfig& t, const int verbosity, const unsigned short alt_svc_port = 0)

Construct a TLS HTTP/1.1 session.

Parameters
stream Connected SSL stream, moved in.
h Application request handler.
t Read/write timeout configuration.
verbosity Logging verbosity (1 = requests, 2 = I/O errors).
alt_svc_port HTTP/3 port advertised via Alt-Svc, or 0 to skip.