Registry / testing / google-go-replayers-httpreplay

google-go-replayers-httpreplay

JSON →
library1.2.0gogounverified

Record and replay HTTP traffic for testing HTTP-based clients.

go get github.com/google/go-replayers/httpreplay
INSTALL
IMPORT
SIG · GOOGLE-GO-REPLAYER
G
google-go-replayers-httpreplay
testinggov1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httpreplay
github.com/google/go-replayers/httpreplay

Record HTTP interactions to a replay file.

package main import ( "log" "net/http" "github.com/google/go-replayers/httpreplay" ) func main() { rec, err := httpreplay.NewRecorder("test.replay", nil) if err != nil { log.Fatal(err) } defer rec.Close() client := &http.Client{Transport: rec} resp, err := client.Get("https://example.com") if err != nil { log.Fatal(err) } log.Println(resp.Status) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
google-go-replayers-httpreplay — go get google-go-replayers-httpreplay · libregistry