Ecosyste.ms: Packages

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/scootpl/restreq

RestReq is a wrapper around standard Go net/http client. In a simple call you can use json encoding, add headers and parse result. This should be sufficient in most use cases. - Simplest use - You can add a header - Use map with JSON payload - JSON payload with KV - In the default behavior, the body of the response is copied to Response.Body, and you don't have to call http.Response.Body.Close() - Default behavior is convenient but not optimal, due to redundant copying. If you need high performance, you can disable this behavior and direct access to the io.Reader. Don't forget to call Response.Body.Close() - Get header value - Decode JSON

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/scootpl/restreq
Keywords: go, golang, http, http-client, microservices, middleware, rest-api
License: MIT
Latest release: over 1 year ago
First release: over 1 year ago
Namespace: github.com/scootpl
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 21 days ago

    Loading...
    Readme
    Loading...