pub fn apply_request_deadline<T>(
request: &mut Request<T>,
headers: &HeaderMap,
) -> Option<Duration>Expand description
Apply a client-supplied deadline to the upstream gRPC call.
Reads the gRPC-standard grpc-timeout header (<int><unit>, unit one of
H/M/S/m/u/n) and sets it as the request timeout. Absent or
malformed values leave the channel default in place. Returns the deadline
that was applied, if any.