Loading [MathJax]/extensions/tex2jax.js
azure-storage-common
All Classes Functions Variables Pages
storage_per_retry_policy.hpp
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4#pragma once
5
6#include <azure/core/http/policies/policy.hpp>
7
8#include <memory>
9
10namespace Azure { namespace Storage { namespace _internal {
11
12 class StoragePerRetryPolicy final : public Core::Http::Policies::HttpPolicy {
13 public:
14 ~StoragePerRetryPolicy() override {}
15
16 std::unique_ptr<HttpPolicy> Clone() const override
17 {
18 return std::make_unique<StoragePerRetryPolicy>(*this);
19 }
20
21 std::unique_ptr<Core::Http::RawResponse> Send(
22 Core::Http::Request& request,
23 Core::Http::Policies::NextHttpPolicy nextPolicy,
24 Core::Context const& context) const override;
25 };
26
27}}} // namespace Azure::Storage::_internal