Documentation ¶
Index ¶
- type FlushWriter
- type Proxy
- func (p *Proxy) AddTranscoder(contentType string, transcoder Transcoder)
- func (p *Proxy) EnableMitm(ca, key string) error
- func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (p *Proxy) SetAuthentication(user, pass string)
- func (p *Proxy) Start(host string) error
- func (p *Proxy) StartTLS(host, cert, key string) error
- type ResponseReader
- type ResponseWriter
- type Transcoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
func (*Proxy) AddTranscoder ¶
func (p *Proxy) AddTranscoder(contentType string, transcoder Transcoder)
func (*Proxy) EnableMitm ¶
func (*Proxy) SetAuthentication ¶
type ResponseReader ¶
func (*ResponseReader) ContentType ¶
func (r *ResponseReader) ContentType() string
func (*ResponseReader) Header ¶
func (r *ResponseReader) Header() http.Header
func (*ResponseReader) Request ¶
func (r *ResponseReader) Request() *http.Request
type ResponseWriter ¶
func (*ResponseWriter) Header ¶
func (w *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (w *ResponseWriter) WriteHeader(s int)
type Transcoder ¶
type Transcoder interface {
Transcode(*ResponseWriter, *ResponseReader, http.Header) error
}
Click to show internal directories.
Click to hide internal directories.