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

github.com/andreyvit/httpsimplified

Package httpsimplified sends outgoing HTTP requests via a simple straightforward API distilled from many internal Golang projects at USA Today Network. It embraces Go stdlib types like url.Values and http.Header, provides composable building blocks for more complex use cases and doesn't try to be clever. Call Get, Post or Put to send a request and parse the response in a single call: where httpsimplified.JSON is a body parser function (we also provide PlainText, Bytes, Raw and None parsers, and you can define your own). See the example for more details. For more advanced requests, build http.Request yourself and call Perform: Use URL func to concatenate a URL and include query params. Use EncodeBody helper to generate application/x-www-form-urlencoded bodies. Finally, if http.DefaultClient doesn't rock your boat, you're free to build and execute a request through whatever means necessary and then call JSON, Bytes or None to verify the response status code and handle the body: To handle HTTP basic authentication, use BasicAuth helper:

Ecosystem
proxy.golang.org
Latest Release
v1.1.0
over 7 years ago
Versions
2
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/andreyvit/httpsimplified
spec
License MIT
Namespace github.com/andreyvit
First Release about 8 years ago
Last Synced 24 days ago
Repository
Stars 0 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Overall Top 8.2%