mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-26 21:00:50 -04:00
allow integral web param
This commit is contained in:
parent
20f0f35f9c
commit
07ceb71e8c
1 changed files with 6 additions and 0 deletions
|
@ -111,6 +111,12 @@ namespace geode::utils::web {
|
|||
|
||||
WebRequest& header(std::string_view name, std::string_view value);
|
||||
WebRequest& param(std::string_view name, std::string_view value);
|
||||
|
||||
template <std::integral T>
|
||||
WebRequest& param(std::string_view name, T value) {
|
||||
return this->param(name, std::to_string(value));
|
||||
}
|
||||
|
||||
WebRequest& userAgent(std::string_view name);
|
||||
|
||||
WebRequest& timeout(std::chrono::seconds time);
|
||||
|
|
Loading…
Add table
Reference in a new issue