Skip to main content

Crate goose_http

Crate goose_http 

Source
Expand description

Goose HTTP - foundational modules for a spec-compliant HTTP/1.1 server.

This library exposes the building blocks for parsing, routing, and responding to HTTP/1.1 requests while adhering to the HTTPbis 2022 update of the specification (RFC 9110, RFC 9111, RFC 9112).

Re-exports§

pub use common::HttpVersion;
pub use common::Method;
pub use common::StatusCode;
pub use headers::HeaderName;
pub use headers::Headers;
pub use headers::header_keys;
pub use request::Request;
pub use request::RequestBuilder;
pub use request::RequestTarget;
pub use response::Response;
pub use response::ResponseBody;
pub use response::ResponseBuilder;
pub use routing::Handler;
pub use routing::Router;
pub use routing::RouterBuilder;
pub use routing::router;
pub use server::Server;
pub use server::ServerBuilder;

Modules§

body
Abstractions for request and response bodies.
cache
HTTP caching helpers covering validators, freshness, and revalidation.
common
Core HTTP types shared across request and response handling.
conn
Connection state machine for handling HTTP/1.1 keep-alive and pipelining.
date
Date and time utilities for HTTP date header formatting.
encode
HTTP response serialization utilities.
headers
HTTP header utilities and case-insensitive storage.
log
Logging utilities.
parse
HTTP/1.1 request parsing and body framing utilities.
range
Byte range parsing utilities.
request
HTTP request representation.
response
HTTP response representation.
routing
Request routing abstractions.
server
Tokio-powered listener orchestration for Goose HTTP.
util
Miscellaneous helpers shared across modules.