Surf

Trying to keep up with the tide.

Helpers and middleware collection for tide

Current features

Notes

Simple logger that doesn't take any dependencies other than the log crate.

rust use surf::middlewares; app.middleware(middlewares::log::RequestLogger::new().timed());

A blanket middleware for Cors.

rust use surf::middlewares; app.middleware(middlewares::cors::CorsBlanket::new() .origin(HeaderValue::from_str("https://surf-with-the-tide").unwrap()) .max_age(HeaderValue::from_str("600").unwrap()));