feat(http): add per-request headers option (#196)

* http: Add per-request headers option

* http: Improve tests

---------

Co-authored-by: Douile <douile@douile.com>
This commit is contained in:
CosminPerRam 2024-03-16 17:57:07 +02:00 committed by GitHub
parent f54321da18
commit 6e53ef0c22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 43 additions and 15 deletions

View file

@ -31,7 +31,7 @@ pub fn query_with_timeout_and_extra_settings(
extra_settings.unwrap_or_default().into(),
)?;
let response = client.get_json::<Root>("/frontpage")?;
let response = client.get_json::<Root>("/frontpage", None)?;
Ok(response.into())
}