pub fn headers() -> Result<Vec<(String, String)>, Error>Expand description
The headers that make a request part of the current test, for a client of the test’s own: the test’s id, as the Request Context field Encore carries it in, and the test’s span for the request to continue.
ⓘ
let mut request = http::Request::get(format!("{}/health", system::url("api")?));
for (name, value) in system::headers()? {
request = request.header(name, value);
}