An open API service indexing awesome lists of open source software.

https://github.com/olivere/httputil

A set of opinionated helpers for working with HTTP handlers, requests, and responses.
https://github.com/olivere/httputil

go golang http

Last synced: 7 months ago
JSON representation

A set of opinionated helpers for working with HTTP handlers, requests, and responses.

Awesome Lists containing this project

README

          

# What is it?

[![Test](https://github.com/olivere/httputil/actions/workflows/test.yml/badge.svg)](https://github.com/olivere/httputil/actions/workflows/test.yml)

The `httputil` package is a set of opinionated HTTP-related helpers.

Helpers include e.g. extracting bearer tokens from HTTP headers, retrieving parameters from the query string or parsing the HTTP body into a JSON-based struct.

## Prior art

The original code was taken from [Camlistore](https://camlistore.org/), and was available in the [camlistore.org/pkg/httputil](https://camlistore.org/pkg/httputil) package. Lately, Camlistore has been renamed to [Perkeep](https://perkeep.org/).

## License

MIT. See [LICENSE](https://github.com/olivere/httputil/blob/master/LICENSE) file.