Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RecordTypeRequest is used for requests. RecordTypeRequest = "request" // RecordTypeResponse is used for responses. RecordTypeResponse = "response" // RecordTypeMetadata is used for metadata. RecordTypeMetadata = "metadata" )
Variables ¶
View Source
var ( // ErrBreakTraversal should be returned from the callback to break traversal. ErrBreakTraversal = errors.New("stop traversal") )
Functions ¶
Types ¶
type Record ¶
type Record struct {
Type string // Type of record ("request", "response", or "metadata")
TargetURI string // Target URI of the record
IdentifiedPayloadType string // Identified MIME type of the payload
HTTPContentType string // Content type defined by HTTP header
Content io.Reader // Reader for the content
}
Record contains all information about a record.
Click to show internal directories.
Click to hide internal directories.