Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSpecWithStr ¶
func CreateSpecWithStr(ja3Str string) (utls.ClientHelloSpec, error)
CreateSpecWithStr creates a ClientHelloSpec based on a JA3 string.
func ProcessSpec ¶
func ProcessSpec(ja3Spec utls.ClientHelloSpec) utls.ClientHelloSpec
func SetAlpnProtocolToHTTP1 ¶
func SetAlpnProtocolToHTTP1(utlsSpec *utls.ClientHelloSpec)
setAlpnProtocolToHTTP1 updates the ALPN protocols of the provided ClientHelloSpec to include "http/1.1".
It modifies the ALPN protocols of the first ALPNExtension found in the extensions of the provided spec. If no ALPNExtension is found, it does nothing.
Note that this function modifies the provided spec in-place.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.