Skip to main content

headers

Function headers 

Source
pub fn headers() -> Result<Vec<(String, String)>, Error>
Expand description

Returns HTTP headers that associate a custom client’s request with the current test (carrying the test ID in Request Context and the active trace context).

ⓘ
let mut request = http::Request::get(format!("{}/health", system::url("api")?));
for (name, value) in system::headers()? {
    request = request.header(name, value);
}