Struct tower_http::trace::DefaultOnResponse
source · [−]pub struct DefaultOnResponse { /* private fields */ }This is supported on crate feature
trace only.Expand description
The default OnResponse implementation used by Trace.
Implementations
Set the Level used for tracing events.
Defaults to Level::DEBUG.
Set the LatencyUnit latencies will be reported in.
Defaults to LatencyUnit::Millis.
Include response headers on the Event.
By default headers are not included.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DefaultOnResponse
impl Send for DefaultOnResponse
impl Sync for DefaultOnResponse
impl Unpin for DefaultOnResponse
impl UnwindSafe for DefaultOnResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect only.Create a new Policy that returns Action::Follow only if self and other return
Action::Follow. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more