Skip to main content

Module http

Module http 

Source

Re-exports§

pub use cookie::parse_cookies;
pub use cookie::Cookie;
pub use cookie::CookieOptions;
pub use cookie::SameSite;
pub use resources::PaginationMeta;
pub use resources::Resource;
pub use resources::ResourceCollection;
pub use resources::ResourceMap;

Modules§

cookie
Cookie handling for Ferro framework
resources

Structs§

HttpResponse
HTTP Response builder providing Laravel-like response creation
InertiaRedirect
Inertia-aware HTTP Redirect response builder.
ParamError
Error type for missing route parameters
Redirect
HTTP Redirect response builder
RedirectRouteBuilder
Builder for redirects to named routes with parameters
Request
HTTP Request wrapper providing Laravel-like access to request data
RequestParts
Request parts after body has been separated

Traits§

FormRequest
Trait for validated form/JSON request data
FromParam
Trait for types that can be extracted from a single path parameter
FromRequest
Trait for types that can be extracted from an HTTP request
ResponseExt
Extension trait for Response to enable method chaining on macros

Functions§

bytes
Create a binary response from raw bytes.
collect_body
Collect the full body from an Incoming stream
json
Create a JSON response from a serde_json::Value
parse_form
Parse bytes as form-urlencoded into the target type
parse_json
Parse bytes as JSON into the target type
text
Create a text response

Type Aliases§

Response
Response type alias - allows using ? operator for early returns