Documentation
¶
Index ¶
- Variables
- func WatchFile(path string, onChange func()) error
- type Proxy
- func (proxy *Proxy) ListenTLS(addr string) (net.Listener, error)
- func (proxy *Proxy) Serve(addr string) error
- func (proxy *Proxy) ServePAC(addr string) error
- func (proxy *Proxy) SignCertificate(commonName string, sans []string) (*tls.Certificate, error)
- func (proxy *Proxy) WatchClientCert(ctx context.Context, sigs chan os.Signal) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorResponse = http.Response{StatusCode: 502, Status: "Connection Failed", ProtoMajor: 1, ProtoMinor: 1}
View Source
var SuccessResponse = http.Response{StatusCode: 200, Status: "Connection Established", ProtoMajor: 1, ProtoMinor: 1}
View Source
var UnsupportedResponse = http.Response{StatusCode: 405, Status: "Must CONNECT", ProtoMajor: 1, ProtoMinor: 1}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.