Skip to main content

RawHandler

Trait RawHandler 

Source
pub trait RawHandler: Send + Sync {
    // Required method
    fn handle(
        &self,
        head: &RequestHead,
        body: &mut dyn BodyReader,
        response: &mut dyn ResponseWriter,
        scope: &RequestScope,
    ) -> Result<()>;
}
Expand description

Application boundary for one raw HTTP request.

Required Methods§

Source

fn handle( &self, head: &RequestHead, body: &mut dyn BodyReader, response: &mut dyn ResponseWriter, scope: &RequestScope, ) -> Result<()>

Handles one request without owning a socket, parser, executor, or clock.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§