mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
HttpRequest: Use std::chrono for indicating time periods
Allows the use of chrono time points, on top of being more indicative of time periods used at call sites, if custom timeouts are specified.
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
@ -17,7 +18,7 @@ namespace Common
|
||||
class HttpRequest final
|
||||
{
|
||||
public:
|
||||
HttpRequest(int timeout_ms = 3000);
|
||||
explicit HttpRequest(std::chrono::milliseconds timeout_ms = std::chrono::milliseconds{3000});
|
||||
~HttpRequest();
|
||||
bool IsValid() const;
|
||||
|
||||
|
Reference in New Issue
Block a user