Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.25 KB

File metadata and controls

25 lines (18 loc) · 1.25 KB

httpc Go Reference Lint Test

Warning

This module depends on the experimental github.com/go-json-experiment/json package. This package is planned to become part of the Go standard library in form of a future json/v2 package. Once that happens this module will be updated to use the new json/v2 package from the standard library instead.

Package httpc provides functions for simplifying client-side HTTP request handling.

Examples

product, err := httpc.Fetch[Product](ctx, "GET", "/product/:id",
    httpc.WithClient(client),
    httpc.WithBaseURL(baseURL),
    httpc.WithPathValue("id", "1234"))

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT