Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StdlogLogger stdlogLogger
Functions ¶
func Transport ¶
func Transport(logger Logger, t http.RoundTripper) http.RoundTripper
Types ¶
type ClientRecvResponse ¶
type ClientRecvResponse struct { Id int64 `json:"id"` Method string `json:"method,omitempty"` URL string `json:"url,omitempty"` Error string `json:"error,omitempty"` StatusCode int `json:"statusCode,omitempty"` Header http.Header `json:"header,omitempty"` Body string `json:"body,omitempty"` Body64 []byte `json:"body64,omitempty"` BodyTruncated bool `json:"bodyTruncated,omitempty"` Hijacked bool `json:"hijacked,omitempty"` }
func (ClientRecvResponse) Kind ¶
func (e ClientRecvResponse) Kind() EventKind
type ClientSendRequest ¶
type ClientSendRequest struct { Id int64 `json:"id"` Method string `json:"method"` URL string `json:"url"` Header http.Header `json:"header"` Body string `json:"body,omitempty"` Body64 []byte `json:"body64,omitempty"` BodyTruncated bool `json:"bodyTruncated,omitempty"` BodyFlushed bool `json:"bodyFlushed,omitempty"` Hijacked bool `json:"hijacked,omitempty"` }
func (ClientSendRequest) Kind ¶
func (e ClientSendRequest) Kind() EventKind
type ServerRecvRequest ¶
type ServerRecvRequest ClientSendRequest
func (ServerRecvRequest) Kind ¶
func (e ServerRecvRequest) Kind() EventKind
type ServerSendResponse ¶
type ServerSendResponse ClientRecvResponse
func (ServerSendResponse) Kind ¶
func (e ServerSendResponse) Kind() EventKind
Click to show internal directories.
Click to hide internal directories.