Crate skyzen_core

Crate skyzen_core 

Source
Expand description

Base type and trait for HTTP server.

Re-exports§

pub use error::*;

Modules§

endpoint
HTTP endpoint abstraction for request handling.
error
Error types used in skyzen.
header
HTTP header types
method
The HTTP request method
middleware
Middleware functionality for HTTP request and response processing.
uri
URI component of request and response lines
version
HTTP version

Structs§

Body
Flexible HTTP body that can represent data in various forms.
Extensions
A type map of protocol extensions.
Method
The Request Method (VERB)
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Uri
The URI component of a request.
Version
Represents a version of the HTTP spec.

Enums§

BodyError
Error type for body operations.

Traits§

Endpoint
A trait for types that can handle HTTP requests and generate responses.
Extractor
Extract a object from request,always is the header,body value,etc.
Middleware
Trait for implementing middleware that can process HTTP requests and responses.
Responder
Transform a object into a part of HTTP response,always is response body,header,etc.
ResultExt
Extension trait for adding status codes to Results.
Server
Abstraction over HTTP server backends.

Type Aliases§

Request
A type alias for HTTP requests with a custom Body type.
Response
A type alias for HTTP responses with a custom Body type.
Result
A specialized Result type for HTTP operations.