6#include <azure/core/http/policies/policy.hpp>
10namespace Azure {
namespace Data {
namespace Tables {
namespace _detail {
namespace Policies {
12 class TimeoutPolicy final :
public Core::Http::Policies::HttpPolicy {
13 constexpr static const char* HttpHeaderDate =
"date";
14 constexpr static const char* HttpHeaderXMsDate =
"x-ms-date";
15 constexpr static const char* HttpQueryTimeout =
"timeout";
16 constexpr static const char* HttpHeaderClientRequestId =
"x-ms-client-request-id";
19 ~TimeoutPolicy()
override {}
21 std::unique_ptr<HttpPolicy> Clone()
const override
23 return std::make_unique<TimeoutPolicy>(*
this);
26 std::unique_ptr<Core::Http::RawResponse> Send(
27 Core::Http::Request& request,
28 Core::Http::Policies::NextHttpPolicy nextPolicy,
29 Core::Context
const& context)
const override;