Crate heart

Source

Re-exports§

pub use fragment::compose;
pub use ergokv;
pub use heart_patched_maud as maud;
pub use tikv_client;
pub use warp;
pub use warp::http;
pub use response::*;

Modules§

addr
Socket Address filters.
body
Body filters
cookie
Cookie Filters
cors
CORS Filters
ext
Request Extensions
fragment
fs
File System Filters
header
Header Filters
host
Host (“authority”) filter
log
Logger Filters
macros
path
Path Filters
prelude
query
Query Filters
response
sse
Server-Sent Events (SSE)
trace
tracing filters.
ws
Websockets Filters

Macros§

filter
fragment
html
htmx
path
Convenient way to chain multiple path filters together.

Structs§

PreEscaped
A wrapper that renders the inner value without escaping.
Rejection
Rejection of a request by a Filter.
Response
Represents an HTTP response
WarpError
Errors that can happen inside warp.

Traits§

Filter
Composable request filters.
Reply
Types that can be converted into a Response.

Functions§

any
A Filter that matches any route.
cookie
Creates a Filter that requires a cookie by name.
cors
Create a wrapping Filter that exposes CORS behavior for a wrapped filter.
delete
Create a Filter that requires the request method to be DELETE.
get
Create a Filter that requires the request method to be GET.
head
Create a Filter that requires the request method to be HEAD.
header
Create a Filter that tries to parse the specified header.
log
Create a wrapping Filter with the specified name as the target.
method
Extract the Method from the request.
options
Create a Filter that requires the request method to be OPTIONS.
patch
Create a Filter that requires the request method to be PATCH.
path
Create an exact match path segment Filter.
post
Create a Filter that requires the request method to be POST.
put
Create a Filter that requires the request method to be PUT.
query
Creates a Filter that decodes query parameters to the type T.
redirect
HTTP 301 Moved Permanently Description: The requested resource has been permanently moved to a new URL. Usage: It is used when a URL has permanently moved to a new location. Search engines will update their index to the new URL. Browsers and clients will automatically cache this redirect, so subsequent requests for the old URL will automatically go to the new URL without making a request to the old URL. Common Use Case: Changing domain names, restructuring website URLs.
serve
Create a Server with the provided Filter.
trace
Create a wrapping filter that instruments every request with a custom tracing Span provided by a function.
ws
Creates a Websocket Filter.

Type Aliases§

Markup
A block of markup is a string that does not need to be escaped.

Derive Macros§

Store
Derives the Store trait for a struct, generating methods for CRUD operations in TiKV.