/httputil

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

Primary LanguageGoMIT LicenseMIT

What is it?

Test

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, and was available in the camlistore.org/pkg/httputil package. Lately, Camlistore has been renamed to Perkeep.

License

MIT. See LICENSE file.