Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dumper ¶
type Dumper interface { PreDump(target proto.Proto, response *http.Response) Dump(target proto.Proto, request *http.Request, response *http.Response, writer Writer) error }
Dumper converts an HTTP response builder into bytes and writes it
type Parser ¶
type Parser interface {
Parse(b []byte) (state RequestState, extra []byte, err error)
}
type RequestState ¶
type RequestState uint8
RequestState represents the state of the request's parsing
const ( Pending RequestState = iota + 1 HeadersCompleted Error )
Click to show internal directories.
Click to hide internal directories.