Skip to main content

Crate milrouter

Crate milrouter 

Source

Re-exports§

pub use anyhow;
pub use tokio;
pub use bytes;
pub use http_body_util;
pub use hyper;
pub use hyper_util;
pub use serde_json;
pub use tracing;
pub use server::*;

Modules§

server

Traits§

Endpoint
IntoRouter
Router

Functions§

all_aboard
Endpoint attribute allowing all requests through, regardless of authentication headers.
gz_compress

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
Optional
endpoint
Arguments
html
Optional

Derive Macros§

Router
Apply to an enum.
Variants’ snake_case names are used as paths, and inner type’s used as endpoint handlers.