The next HTTP policy in the stack sequence of policies.
More...
#include <policy.hpp>
- Note
NextHttpPolicy
is an abstraction representing the next policy in the stack sequence of policies, from the caller's perspective.
-
Inside the Azure::Core::Http::Policies::HttpPolicy::Send() function implementation, an object of ths class represent the next HTTP policy in the stack of HTTP policies, relative to the curent HTTP policy.
◆ NextHttpPolicy()
Azure::Core::Http::Policies::NextHttpPolicy::NextHttpPolicy |
( |
size_t |
index, |
|
|
const std::vector< std::unique_ptr< HttpPolicy >> & |
policies |
|
) |
| |
|
inlineexplicit |
- Parameters
-
index | A sequential index of this policy in the stack sequence of policies. |
policies | A vector of unique pointers next in the line to be invoked after the current policy. |
◆ Send()
- Parameters
-
request | An HTTP request being sent. |
context | A context to control the request lifetime. |
- Returns
- An HTTP response after this policy, and all subsequent HTTP policies in the stack sequence of policies have been applied.
The documentation for this class was generated from the following files:
- inc/azure/core/http/policies/policy.hpp
- src/http/policy.cpp