TsgcHTTP2Client › Methods

TsgcHTTP2Client Methods

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

Connection

NameDescription
ConnectOpens the HTTP/2 connection and issues a synchronous GET to the supplied URL.
ConnectAsyncOpens the HTTP/2 connection and issues a non-blocking GET; the reply is delivered on OnHTTP2Response.
DisconnectCloses the underlying TCP/TLS socket immediately without sending a GOAWAY frame.
ClosePerforms a graceful shutdown by sending a GOAWAY frame with an error code and optional debug text.
PingSends an HTTP/2 PING frame to probe liveness and measure round-trip time.

HTTP verbs

NameDescription
GetSends a synchronous HTTP/2 GET request and returns the response body.
PostSends a synchronous HTTP/2 POST request with a stream payload.
PutSends a synchronous HTTP/2 PUT request with a stream payload.
DeleteSends a synchronous HTTP/2 DELETE request to remove the target resource.
OptionsSends a synchronous HTTP/2 OPTIONS request to inspect the resource's capabilities.
PatchSends a synchronous HTTP/2 PATCH request with a partial-update payload.
TraceSends a synchronous HTTP/2 TRACE request used as a loop-back diagnostic.
HeadSends a synchronous HTTP/2 HEAD request returning only response headers.

Async HTTP verbs

NameDescription
PostAsyncSends a non-blocking POST; the reply arrives on OnHTTP2Response.
PutAsyncSends a non-blocking PUT; the reply arrives on OnHTTP2Response.
DeleteAsyncSends a non-blocking DELETE; the reply arrives on OnHTTP2Response.
OptionsAsyncSends a non-blocking OPTIONS; the reply arrives on OnHTTP2Response.
PatchAsyncSends a non-blocking PATCH; the reply arrives on OnHTTP2Response.
TraceAsyncSends a non-blocking TRACE; the reply arrives on OnHTTP2Response.

All Methods (alphabetical)

NameDescription
ClosePerforms a graceful shutdown by sending a GOAWAY frame with an error code and optional debug text.
ConnectOpens the HTTP/2 connection and issues a synchronous GET to the supplied URL.
ConnectAsyncOpens the HTTP/2 connection and issues a non-blocking GET; the reply is delivered on OnHTTP2Response.
DeleteSends a synchronous HTTP/2 DELETE request to remove the target resource.
DeleteAsyncSends a non-blocking DELETE; the reply arrives on OnHTTP2Response.
DisconnectCloses the underlying TCP/TLS socket immediately without sending a GOAWAY frame.
GetSends a synchronous HTTP/2 GET request and returns the response body.
HeadSends a synchronous HTTP/2 HEAD request returning only response headers.
OptionsSends a synchronous HTTP/2 OPTIONS request to inspect the resource's capabilities.
OptionsAsyncSends a non-blocking OPTIONS; the reply arrives on OnHTTP2Response.
PatchSends a synchronous HTTP/2 PATCH request with a partial-update payload.
PatchAsyncSends a non-blocking PATCH; the reply arrives on OnHTTP2Response.
PingSends an HTTP/2 PING frame to probe liveness and measure round-trip time.
PostSends a synchronous HTTP/2 POST request with a stream payload.
PostAsyncSends a non-blocking POST; the reply arrives on OnHTTP2Response.
PutSends a synchronous HTTP/2 PUT request with a stream payload.
PutAsyncSends a non-blocking PUT; the reply arrives on OnHTTP2Response.
TraceSends a synchronous HTTP/2 TRACE request used as a loop-back diagnostic.
TraceAsyncSends a non-blocking TRACE; the reply arrives on OnHTTP2Response.