summaryrefslogtreecommitdiff
path: root/Source/Core/Common/HttpRequest.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-06-18 15:36:39 -0400
committerLioncash <mathew1800@gmail.com>2017-06-18 15:48:37 -0400
commit251de89b5cb90ddca56bee21c542edb40ca5ff24 (patch)
treeacda33dd150f4d81a1bb0464eae9f18122e6bb36 /Source/Core/Common/HttpRequest.h
parent795157a9bc7c0460c530da6fb466909ef8517e39 (diff)
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.
Diffstat (limited to 'Source/Core/Common/HttpRequest.h')
-rw-r--r--Source/Core/Common/HttpRequest.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/HttpRequest.h b/Source/Core/Common/HttpRequest.h
index 4a1d7730d0..2a6590c1ca 100644
--- a/Source/Core/Common/HttpRequest.h
+++ b/Source/Core/Common/HttpRequest.h
@@ -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;