Function handle_request

Source
pub async fn handle_request(
    req: Request<Incoming>,
    state: Arc<RwLock<ServerState>>,
) -> Result<Response<Full<Bytes>>, Infallible>
Expand description

Handle incoming HTTP requests

ยงErrors

should be Infallible