rama-http 0.3.0-rc1

rama http layers, services and other utilities
1
2
3
4
5
6
7
8
9
10
11
12
use std::convert::Infallible;

use super::FromRequest;
use rama_net::uri::Uri;

impl FromRequest for Uri {
    type Rejection = Infallible;

    async fn from_request(req: crate::Request) -> Result<Self, Self::Rejection> {
        Ok(req.into_parts().0.uri)
    }
}