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 super::FromRequest;
use crate::Request;
use rama_core::extensions::Extensions;
use std::convert::Infallible;

impl FromRequest for Extensions {
    type Rejection = Infallible;

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