Skip to content

nussjustin/httpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages