http-types: Generic HTTP types for Haskell (for both client and server code).

[ bsd3, library, network, web ] [ Propose Tags ] [ Report a vulnerability ]

Types and functions to describe and handle HTTP concepts. Including "methods", "headers", "query strings", "paths" and "HTTP versions".


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.5, 0.5.1, 0.5.2, 0.5.3, 0.6.0, 0.6.0.1, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.5.1, 0.6.6, 0.6.7, 0.6.8, 0.6.9, 0.6.10, 0.6.11, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.7.3.0.1, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.9, 0.9.1, 0.10, 0.11, 0.12, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5
Change log CHANGELOG.md
Dependencies array (>=0.5.1.0 && <0.6), base (>=4.8 && <5), bytestring (>=0.10.6.0 && <1), case-insensitive (>=1.2.0.2 && <1.3), text (>=1.2.0.2 && <3) [details]
Tested with ghc ==7.10.3, ghc ==9.6.7, ghc ==9.8.4, ghc ==9.10.3, ghc ==9.12.4, ghc ==9.14.1
License BSD-3-Clause
Copyright (C) 2011 Aristid Breitkreuz, (C) 2023 Felix Paulusma
Author Aristid Breitkreuz, Michael Snoyman
Maintainer felix.paulusma@gmail.com
Uploaded by nideco at 2026-05-31T21:06:46Z
Category Network, Web
Home page https://github.com/Vlix/http-types
Source repo this: git clone https://github.com/Vlix/http-types.git(tag v0.12.5)
head: git clone https://github.com/Vlix/http-types.git
Distributions Arch:0.12.4, Fedora:0.12.4, LTSHaskell:0.12.5, Stackage:0.12.5
Reverse Dependencies 985 direct, 3255 indirect [details]
Downloads 255272 total (190 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-05-31 [all 1 reports]

Readme for http-types-0.12.5

[back to package description]

Build Status Hackage Stackage LTS Stackage Nightly BSD 3-Clause License

Generic HTTP types for Haskell (for both client and server code).

The goal of this library is to have one location for any library, package or project to base their general HTTP types on for better interoperability.

This library provides basic types for the following:

  • HTTP versions (e.g. HTTP/1.1)
  • HTTP methods (e.g. GET)
  • HTTP headers (e.g. Content-Type)
  • HTTP statusses (e.g. 404)

This library also contains some utility functions, e.g. related to URI handling, that are not necessarily restricted in use to HTTP, but the scope is restricted to things that are useful inside HTTP, i.e. no FTP URI parsing.