Configuration.handleTLSClientHello()
Description
Appends a handleTLSClientHello filter to the current pipeline layout.
A handleTLSClientHello filter calls back user scripts when a TLS client hello message is found in the input stream.
- INPUT - Any types of Events.
- OUTPUT - Same Events as input.
The user function that gets called will have an object as parameter. The object has these fields:
This filter passes everything down unaltered. It doesn't change anything in the event stream.
Syntax
pipy().pipeline().handleTLSClientHello(({ serverNames, protocolNames }) => onClientHello())
Parameters
handleTLSClientHello(handler)
handler
A callback function that receives SNI and ALPN information in the TLS client hello message passing through the filter. The parameter the callback function receives is an object containing the following fields:
Return Value
The same Configuration object.