azure-core
Public Member Functions | Protected Member Functions | List of all members
Azure::Core::Http::HttpTransport Class Referenceabstract

Base class for all HTTP transport implementations.

#include <transport.hpp>

Inheritance diagram for Azure::Core::Http::HttpTransport:
Azure::Core::Http::CurlTransport Azure::Core::Http::WinHttpTransport

Public Member Functions

virtual std::unique_ptr< RawResponseSend (Request &request, Context const &context)=0
 Send an HTTP request over the wire. More...
 
virtual ~HttpTransport ()
 Destructs HttpTransport. More...
 

Protected Member Functions

 HttpTransport ()=default
 Constructs a default instance of HttpTransport. More...
 
 HttpTransport (const HttpTransport &other)=default
 Constructs HttpTransport by copying another instance of HttpTransport. More...
 
 HttpTransport (HttpTransport &&other)=default
 Constructs HttpTransport by moving another instance of HttpTransport. More...
 
HttpTransportoperator= (const HttpTransport &other)=default
 Assigns HttpTransport to another instance of HttpTransport. More...
 

Constructor & Destructor Documentation

◆ ~HttpTransport()

virtual Azure::Core::Http::HttpTransport::~HttpTransport ( )
inlinevirtual

◆ HttpTransport() [1/3]

Azure::Core::Http::HttpTransport::HttpTransport ( )
protecteddefault

◆ HttpTransport() [2/3]

Azure::Core::Http::HttpTransport::HttpTransport ( const HttpTransport other)
protecteddefault
Parameters
otherAn instance to copy.

◆ HttpTransport() [3/3]

Azure::Core::Http::HttpTransport::HttpTransport ( HttpTransport &&  other)
protecteddefault
Parameters
otherAn instance to move in.

Member Function Documentation

◆ operator=()

HttpTransport& Azure::Core::Http::HttpTransport::operator= ( const HttpTransport other)
protecteddefault
Parameters
otherAn instance to assign.
Returns
A reference to this instance.

◆ Send()

virtual std::unique_ptr<RawResponse> Azure::Core::Http::HttpTransport::Send ( Request request,
Context const &  context 
)
pure virtual
Parameters
requestAn Azure::Core::Http::Request to send.
contextA context to control the request lifetime.

Implemented in Azure::Core::Http::WinHttpTransport, and Azure::Core::Http::CurlTransport.


The documentation for this class was generated from the following file: