handle_request

Function handle_request 

Source
async fn handle_request(
    request: &IrohGatewayRequest,
    gateway: Arc<Gateway>,
    handlers: Arc<Handlers>,
    task_group: TaskGroup,
) -> Result<(StatusCode, Json<Value>)>
Expand description

Checks if the requested route is authenticated and will reject the request if the authentication is incorrect. Then it will lookup the specific handler in Handlers, execute it, and return the function’s JSON along with an HTTP status code.