Skip to main content

Crate milrouter

Crate milrouter 

Source

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§

server

Traits§

Endpoint
Implemented automatically by #[endpoint] for every endpoint function.
IntoRouter
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 inp into out. Used internally for JSON payloads.
gz_decompress
Gzip-decompress inp into out. Used internally by the typed client.

Type Aliases§

BoxFuture
An owned dynamically typed Future for use in cases where you can’t statically type your result or need to add some indirection.

Attribute Macros§

assets
endpoint
html
middleware

Derive Macros§

Router