Skip to main content

RequestExt

Trait RequestExt 

Source
pub trait RequestExt {
    // Required methods
    fn client_info(&self) -> ClientInfo;
    fn get_headers(&self) -> Map<String, Value>;
    fn json<T: DeserializeOwned>(bytes: Bytes) -> AppResult<T>;
    fn ip(&self) -> Option<String>;
    fn user_agent(&self) -> Option<String>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RequestExt for HttpRequest

Implementors§