Re-exports§
pub use anyhow;pub use tokio;pub use bytes;pub use futures;pub use http_body_util;pub use hyper;pub use hyper_util;pub use reqwest;pub use serde;pub use serde_json;pub use tracing;pub use server::*;
Modules§
Traits§
- Endpoint
- Implemented automatically by
#[endpoint]for every endpoint function. - Into
Router - Bridges an endpoint struct back into the router enum that owns it.
Implemented automatically by
#[derive(Router)]. - Middleware
- Middleware that can intercept requests before they reach an endpoint and transform responses after the endpoint has run.
- Router
- Implemented automatically by
#[derive(Router)]for router enums.
Functions§
- all_
aboard - Endpoint attribute allowing all requests through, regardless of authentication headers.
- gz_
compress - Gzip-compress
inpintoout. Used internally for JSON payloads. - gz_
decompress - Gzip-decompress
inpintoout. Used internally by the typed client.
Type Aliases§
- BoxFuture
- An owned dynamically typed
Futurefor use in cases where you can’t statically type your result or need to add some indirection.