is_grpc_request

Function is_grpc_request 

Source
pub fn is_grpc_request(headers: &HeaderMap) -> bool
Expand description

Returns true if the given headers indicate a gRPC request.

The check is on the Content-Type header rather than the request path, since a request that reaches this point matched no route and so its path says nothing useful.