azure-core
Public Member Functions | List of all members
Azure::Core::Http::Policies::NextHttpPolicy Class Referencefinal

The next HTTP policy in the stack sequence of policies. More...

#include <policy.hpp>

Public Member Functions

 NextHttpPolicy (size_t index, const std::vector< std::unique_ptr< HttpPolicy >> &policies)
 Constructs an abstraction representing a next line in the stack sequence of policies, from the caller's perspective. More...
 
std::unique_ptr< RawResponseSend (Request &request, Context const &context)
 Applies this HTTP policy. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ NextHttpPolicy()

Azure::Core::Http::Policies::NextHttpPolicy::NextHttpPolicy ( size_t  index,
const std::vector< std::unique_ptr< HttpPolicy >> &  policies 
)
inlineexplicit
Parameters
indexA sequential index of this policy in the stack sequence of policies.
policiesA vector of unique pointers next in the line to be invoked after the current policy.

Member Function Documentation

◆ Send()

std::unique_ptr< RawResponse > NextHttpPolicy::Send ( Request request,
Context const &  context 
)
Parameters
requestAn HTTP request being sent.
contextA 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: