Skip to main content

Crate faithea

Crate faithea 

Source
Expand description

§HTTP Server Library

A lightweight, asynchronous HTTP server framework built with Tokio.

This library provides core components for building HTTP servers with support for:

  • HTTP request/response parsing
  • Routing with various pattern matching types
  • Guard middleware system for request validation
  • Asynchronous request handling

§Key Features

  • Async-first: Built on Tokio for high-performance async I/O
  • Flexible Routing: Supports exact, parameterized, and wildcard routes
  • Middleware Guards: Chainable guards for authentication and validation
  • Type Safety: Leverages Rust’s type system for compile-time safety

§Modules

  • request: HTTP request parsing and structures
  • response: HTTP response building and serialization
  • server: Main HTTP server implementation
  • handler: Request handler and routing system
  • guard: Guard middleware for request validation
  • route: Route pattern matching components

Modules§

data
error
guard
handler
header
request
response
route
server
util
websocket

Macros§

handlers
map_fu
map_str
res_modifiers

Structs§

HeaderMap
A specialized multimap for header names and values.

Traits§

TryConvertFrom
TryConvertInto
please impl TryConvertFrom

Functions§

regulate_url_path

Type Aliases§

ResponseModifier

Attribute Macros§

delete
get
post
put

Derive Macros§

MultipartData