Registry / testing / h2non-gock

h2non-gock

JSON →
library1.2.0gogounverified

HTTP mocking library for Go, allowing easy interception and stubbing of HTTP requests.

go get github.com/h2non/gock
INSTALL
IMPORT
SIG · H2NON-GOCK
H
h2non-gock
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.

gock
github.com/h2non/gock

Mock an HTTP GET request

package main import "github.com/h2non/gock" func main() { defer gock.Off() gock.New("http://example.com").Get("/foo").Reply(200) }
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
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
h2non-gock — go get h2non-gock · libregistry