httptest::mappers::request
pub fn headers<M>(inner: M) -> Headers<M>
Extract the headers from the HTTP request and pass the sequence to the next mapper.