talira

Common HTTP types for Rust

open sourceMIT OR Apache-2.0free

http is a general purpose Rust library of common HTTP types: requests and responses with their builders, status codes, methods, headers and URIs. It sends no requests and runs no server; it's meant as the "standard library" of types that HTTP clients, servers and middleware in Rust use to pass requests and responses between each other, from the hyperium project behind hyper. It's dual-licensed under MIT or Apache 2.0.

Problems it solves

  • standard Rust types for HTTP requests and responses that work across libraries
  • pass HTTP requests between Rust crates without each defining its own types
  • build an HTTP request or response in Rust without pulling in a whole client or server

Features

  • Request and Response types with builders
  • StatusCode, Method, HeaderMap and Uri types
  • no networking or I/O of its own
  • shared by Rust HTTP clients, servers and middleware

Alternatives

The same job

These do what http does.

  1. mime (Rust) MIME (HTTP media types) as strong types in Rust

Compare http with the top 3