Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // CertKeyPair is the X509 cert/key pair that is used in the MITM proxy CertKeyPair tls.Certificate // Paths to the filtering rules FiltersPaths map[int]string // InjectionHost is used for injecting custom CSS/JS into web pages. // // Here's how it works: // * The proxy injects `<script src="//INJECTIONS_HOST/content-script.js?domain=HOSTNAME&flags=FLAGS"></script>` // * Depending on the FLAGS and the HOSTNAME, it either injects cosmetic rules or not // * Proxy handles requests to this host // * The content script content depends on the FLAGS value InjectionHost string }
Config contains the MITM proxy configuration
type Server ¶
type Server struct { Config // Server configuration // contains filtered or unexported fields }
Server contains the current server state
func (*Server) ListenAndServe ¶
ListenAndServe listens on the TCP network address addr It always returns a non-nil error.
Click to show internal directories.
Click to hide internal directories.