Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot represents a snapshot of request state, and uses that snapshot to create clones of the request as required.
func CreateSnapshot ¶
CreateSnapshot creates a snapshot of the specified request.
func CreateSnapshotAndClose ¶
CreateSnapshotAndClose creates a snapshot of the specified request, then destroys the original request.
func (*Snapshot) GetCachedRequestBody ¶
GetCachedRequestBody retrieves a copy of the cached request body from the snapshot.
Returns an empty array if the request has no body.
func (*Snapshot) GetCachedRequestBodyReader ¶
GetCachedRequestBodyReader creates a reader over the cached request body from the snapshot.
Returns nil if the request has no body.
Click to show internal directories.
Click to hide internal directories.