Skip to main content

Crate cot_core

Crate cot_core 

Source
Expand description

Core types and functionality for the Cot web framework.

This crate provides the foundational building blocks for Cot, including HTTP primitives, body handling, error types, handlers, middleware, and request/response types.

Most applications should use the main cot crate rather than depending on cot-core directly. This crate is primarily intended for internal use by the Cot framework and for building custom extensions.

Re-exports§

pub use error::Error;

Modules§

error
Error handling types and utilities for Cot applications.
handler
Request handler traits and utilities.
headers
HTTP header constants.
html
HTML rendering utilities.
middleware
Middlewares for modifying requests and responses.
request
response

Macros§

handle_all_parameters
impl_into_cot_error

Structs§

Body
A type that represents an HTTP request or response body.

Type Aliases§

Method
A type alias for an HTTP method.
Result
A type alias for a result that can return a Error.
StatusCode
A type alias for an HTTP status code.