TSHttpTxnIsWebsocket

Test whether a request is attempting to initiate Websocket connection.

Synopsis

#include <ts/ts.h>

int TSHttpTxnIsWebsocket(TSHttpTxn txnp)

Description

TSHttpTxnIsWebsocket() tests whether the transaction is a WebSocket upgrade request.

Return Values

A non-zero value is returned if the relevant header value is found.

See also

TSAPI(3ts)