Generic HTTP types for Haskell, for client and server code
open sourceBSD-3-Clausefree
http-types is a Haskell library of types and functions for HTTP concepts, shared by client and server code: methods, status codes, headers, query strings, paths and HTTP versions, with helpers to encode and decode them. It is on Hackage as http-types, maintained by Felix Paulusma, and BSD-3-Clause licensed.
Problems it solves
- share HTTP method and header types between my Haskell client and server
- parse and build query strings in Haskell
- use standard HTTP status codes in a Haskell web app
Features
- HTTP methods, headers and status codes as types
- query string and path encoding
- HTTP versions
Alternatives
The same job
These do what http-types does.
- HTTP (Haskell) Client-side HTTP library for Haskell, written in Haskell on the network package
- http-client HTTP client engine and higher-level HTTP APIs for Haskell
