TsgcHTTP2Client › Events

TsgcHTTP2Client Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Connection

NameDescription
OnHTTP2ConnectFires just after the client connects successfully to the HTTP/2 server.
OnHTTP2DisconnectFires when the HTTP/2 connection has been closed.
OnHTTP2ExceptionFires when an exception is raised on the HTTP/2 connection so the application can handle it.
OnHTTP2GoAwayFires when the server sends a GoAway frame signalling the connection is being shut down.

Responses

NameDescription
OnHTTP2ResponseFires when the client receives the full response (status, headers and body) from the server.
OnHTTP2ResponseFragmentFires for each streamed response fragment when FragmentedData delivers data as it arrives.
OnHTTP2PushPromiseFires when the server pushes a resource so the client can accept or cancel it.
OnHTTP2RSTStreamFires when the server resets a specific HTTP/2 stream.

Requests

NameDescription
OnHTTP2BeforeRequestFires just before request headers are sent so the application can add or modify them.
OnHTTP2PendingRequestsFires after a disconnection when there are pending requests so the application can reconnect or clear the queue.
OnHTTP2AuthorizationFires when the server requires authentication so the application can supply credentials or a bearer token.

Security

NameDescription
OnSSLGetHandlerFires before the SSL handler is created so a custom handler instance can be supplied.
OnSSLAfterCreateHandlerFires after the SSL handler has been created so its properties can be customized.

All Events (alphabetical)

NameDescription
OnHTTP2AuthorizationFires when the server requires authentication so the application can supply credentials or a bearer token.
OnHTTP2BeforeRequestFires just before request headers are sent so the application can add or modify them.
OnHTTP2ConnectFires just after the client connects successfully to the HTTP/2 server.
OnHTTP2DisconnectFires when the HTTP/2 connection has been closed.
OnHTTP2ExceptionFires when an exception is raised on the HTTP/2 connection so the application can handle it.
OnHTTP2GoAwayFires when the server sends a GoAway frame signalling the connection is being shut down.
OnHTTP2PendingRequestsFires after a disconnection when there are pending requests so the application can reconnect or clear the queue.
OnHTTP2PushPromiseFires when the server pushes a resource so the client can accept or cancel it.
OnHTTP2ResponseFires when the client receives the full response (status, headers and body) from the server.
OnHTTP2ResponseFragmentFires for each streamed response fragment when FragmentedData delivers data as it arrives.
OnHTTP2RSTStreamFires when the server resets a specific HTTP/2 stream.
OnSSLAfterCreateHandlerFires after the SSL handler has been created so its properties can be customized.
OnSSLGetHandlerFires before the SSL handler is created so a custom handler instance can be supplied.