Configuring an HTTP handler
How to configure an HTTP handler to manage HTTP protocol communications with DataPower® services.
About this task
You can configure a handler to support the WebSocket or HTTP version 2 (HTTP/2)
protocol. A client cannot have both a WebSocket and an HTTP/2 session. WebSocket cannot use an
HTTP/2 session. The establishment of an HTTP/2 session disables the WebSocket upgrade.
- For a WebSocket upgrade, the request is to switch the existing connection to use the WebSocket
protocol. WebSocket upgrade requests require that the handler allows GET methods in requests. When
the handler switches to the WebSocket protocol, you can control the idle timeout. This timer
monitors the idle time in the data transfer process. When the specified idle time is exceeded, the
connection is torn down.Attention: Not all DataPower services support WebSocket upgrade. If you assign a handler that supports WebSocket upgrade to a DataPower service that does not, the DataPower service cannot start because of an invalid configuration.
- For HTTP/2, the handler must allow the HTTP/2 feature. When the handler uses the HTTP/2
protocol, you can control the following settings.
- The maximum number of outstanding concurrent streams.
- The maximum frame size in octets.
- Whether to enable the inclusion of the HTTP/2 stream header in the request or response. When
enabled, the HTTP/2 stream identifier is included in the
x-dp-http2-streamheader. With this header, you can correlate the HTTP/2 stream.
- The HTTP version to client.
- The negotiation and reuse of persistent connections.
- Upgrade to WebSocket.
For more information about the HTTP/2 protocol, see RFC 7540 and RFC 7541.