An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/yookoala/mockhttp

Package mockhttp helps you to mock network behaviour for testing against http stack. To mock the transport for whatever test you want to run with "http" library, you may override the response with some of the utils like mockhttp.StaticResponseRT: You may mux different response for different URL host name. MuxRoundTripper also can be used directly to create client. You can partially override the round trip like this:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/yookoala/mockhttp
License: MIT
Latest release: about 7 years ago
First release: about 7 years ago
Namespace: github.com/yookoala
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...