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.
 

Protected Member Functions

 HttpTransport ()=default
 Constructs a default instance of HttpTransport.
 
 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...
 
virtual bool HasWebSocketSupport () const
 Returns true if the HttpTransport supports WebSockets (the ability to communicate bidirectionally on the TCP connection used by the HTTP transport).
 

Constructor & Destructor Documentation

◆ HttpTransport() [1/2]

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

◆ HttpTransport() [2/2]

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: