TsgcHTTP3Server › Methods

TsgcHTTP3Server Methods

Public methods grouped by purpose, followed by the full alphabetical list.

Lifecycle

NameDescription
StartStarts the QUIC listener and begins accepting HTTP/3 connections. Inherited from TsgcQUICServer.
StopStops the listener and closes all active connections. Inherited from TsgcQUICServer.
SendGoAwaySends a GOAWAY frame to start a graceful connection shutdown.

Responses

NameDescription
SendResponseSends an HTTP/3 response (HEADERS and DATA frames) on a request stream. Not needed in the normal request flow, which answers through OnH3Request.
PushPromisePushes an associated resource to the client (PUSH_PROMISE plus a server-initiated push stream). Call it from inside OnH3Request.

CONNECT tunnels and WebTransport

NameDescription
TunnelSendSends bytes back on an established CONNECT tunnel stream.
SendDatagramExtension point for emitting a WebTransport/HTTP3 datagram. The base implementation is a no-op. Requires SGC_WEBTRANSPORT.

Diagnostics

NameDescription
QPACKDynamicInsertsReports how many QPACK dynamic-table insertions the response encoders have performed.
QPACKBlockedResumedReports how many request header sections were blocked on QPACK inserts and later resumed.

Inherited from TsgcQUICServer

These QUIC transport methods are inherited from TsgcQUICServer and are documented on its own pages. The HTTP/3 layer uses them internally to write frames; an application serving HTTP/3 does not normally call them, since writing raw bytes on a stream that carries HTTP/3 corrupts its framing.

NameDescription
ConnectionCountNumber of QUIC connections currently established. Safe to call on an HTTP/3 server.
OpenStreamOpens a new QUIC stream on a connection.
WriteDataWrites raw bytes on a connection's default stream.
WriteStreamDataWrites raw bytes on a specific QUIC stream.

All Methods (alphabetical)

NameDescription
ConnectionCountNumber of QUIC connections currently established. Inherited from TsgcQUICServer.
OpenStreamOpens a new QUIC stream on a connection. Inherited from TsgcQUICServer.
PushPromisePushes an associated resource to the client (PUSH_PROMISE plus a server-initiated push stream).
QPACKBlockedResumedReports how many request header sections were blocked on QPACK inserts and later resumed.
QPACKDynamicInsertsReports how many QPACK dynamic-table insertions the response encoders have performed.
SendDatagramExtension point for emitting a WebTransport/HTTP3 datagram. The base implementation is a no-op.
SendGoAwaySends a GOAWAY frame to start a graceful connection shutdown.
SendResponseSends an HTTP/3 response (HEADERS and DATA frames) on a request stream.
StartStarts the QUIC listener and begins accepting HTTP/3 connections. Inherited from TsgcQUICServer.
StopStops the listener and closes all active connections. Inherited from TsgcQUICServer.
TunnelSendSends bytes back on an established CONNECT tunnel stream.
WriteDataWrites raw bytes on a connection's default stream. Inherited from TsgcQUICServer.
WriteStreamDataWrites raw bytes on a specific QUIC stream. Inherited from TsgcQUICServer.