Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MAX_TLS_CERT_CACHE_SIZE = 10000000
Around 100 MB (1 certificate is 8KB)
Functions ¶
func GenLoggerForProxy ¶
func SetupProxy ¶
func SetupProxy(config *Config) *goproxy.ProxyHttpServer
Types ¶
type Config ¶
type Config struct {
DefaultRoute DefaultRoute
AlwaysMitm bool
Certificate *tls.Certificate
Logger *loggers.Logger
Router models.Router
HttpsHostNames []string
InsecureCipherSuites bool
}
type DefaultRoute ¶
type ResponseWrite ¶
func NewResponseWriter ¶
func NewResponseWriter(req *http.Request) *ResponseWrite
usage: fileRes := NewResponseWriter(req) fileRes implements `http.ResponseWriter` fileRes.res is `*http.Response`
func (*ResponseWrite) Header ¶
func (f *ResponseWrite) Header() http.Header
func (*ResponseWrite) WriteHeader ¶
func (f *ResponseWrite) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.