Skip to main content

with_accept

Function with_accept 

Source
pub async fn with_accept<F, T>(accept: impl Into<String>, fut: F) -> T
where F: Future<Output = T>,
Expand description

Run fut with the request Accept header visible to current_accept.