mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
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:
parent
f54321da18
commit
6e53ef0c22
2 changed files with 43 additions and 15 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue