package
15.2.0
Repository: https://github.com/seborama/govcr.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

All accepts one or more predicates and returns a new predicate that will evaluate to true when every of the supplied predicate is true, otherwise false.
Any accepts one or more predicates and returns a new predicate that will evaluate to true when any the supplied predicate is true, otherwise false.
CloneHTTPRequest clones an http.Request.
HasAnyMethod is a Predicate that returns true if the track Request method is one of the specified statuses.
HasAnyStatus is a Predicate that returns true if the track Response HTTP status string is one of the specified statuses.
HasAnyStatusCode is a Predicate that returns true if the track Response HTTP status code is one of the specified codes.
HasErr is a Predicate that returns true if the track records a transport error.
HasNoErr is a Predicate that returns true if the track does not record a transport error.
NewTrack creates a new Track.
None requires all predicates to be false.
Not accepts one predicate and returns its logically contrary evaluation.
ResponseAddHeaderValue adds or overwrites a header key / value to the response.
ResponseChangeBody allows to change the body of the response.
ResponseDeleteHeaderKeys deletes one or more header keys from the response.
ResponseDeleteTLS removes TLS data from the response.
ResponseTransferHTTPHeaderKeys transfers one or more headers from the "current" Response.Request to the track response.
ResponseTransferHTTPTrailerKeys transfers one or more trailers from the HTTP request to the track response.
ToRequest transcodes an HTTP Request to a track Request.
ToResponse transcodes an HTTP Response to a track Response.
TrackRequestAddHeaderValue adds or overwrites a header key / value to the HTTP request.
TrackRequestChangeBody allows to change the body of the request.
TrackRequestDeleteHeaderKeys deletes one or more header keys from the track request.

# Structs

Request is a track HTTP Request.
Response is a track HTTP Response.
Track is a recording (HTTP Request + Response) in a cassette.

# Type aliases

Mutator is a function signature for a Track mutator.
Mutators is a collection of Track Mutator's.
Predicate is a function signature that takes a Track and returns a boolean.