pattern

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 0 Imported by: 8

Documentation

Index

Constants

View Source
const (
	TLS    = "tls"
	SOCKS4 = "socks4"
	SOCKS5 = "socks5"
	HTTP   = "http"
	HTTP2  = "http2"
	SSH    = "ssh"
)

Variables

View Source
var Pattern = map[string][]string{
	TLS: {
		"\x16\x03\x00",
		"\x16\x03\x01",
		"\x16\x03\x02",
		"\x16\x03\x03",
		"\x16\x03\x04",
	},
	SOCKS4: {
		"\x04\x01",
		"\x04\x02",
	},
	SOCKS5: {
		"\x05\x01",
		"\x05\x02",
		"\x05\x03",
	},
	HTTP: {
		"GET ",
		"HEAD ",
		"POST ",
		"PUT ",
		"PATCH ",
		"DELETE ",
		"CONNECT ",
		"OPTIONS ",
		"TRACE ",
	},
	HTTP2: {
		"PRI * HTTP/2.0",
	},
	SSH: {
		"SSH-",
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL