azure-core
1.7.0-beta.1
inc
azure
core
http
transport.hpp
Go to the documentation of this file.
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
// SPDX-License-Identifier: MIT
3
9
#pragma once
10
11
#include "
azure/core/context.hpp
"
12
#include "
azure/core/http/http.hpp
"
13
14
namespace
Azure
{
namespace
Core {
namespace
Http {
15
19
class
HttpTransport
{
20
public
:
21
// If we get a response that goes up the stack
22
// Any errors in the pipeline throws an exception
23
// At the top of the pipeline we might want to turn certain responses into exceptions
24
31
// TODO - Should this be const
32
virtual
std::unique_ptr<RawResponse>
Send
(
Request
& request,
Context
const
& context) = 0;
33
38
virtual
~HttpTransport
() {}
39
40
protected
:
45
HttpTransport
() =
default
;
46
52
HttpTransport
(
const
HttpTransport
& other) =
default
;
53
59
HttpTransport
(
HttpTransport
&& other) =
default
;
60
68
HttpTransport
&
operator=
(
const
HttpTransport
& other) =
default
;
69
};
70
71
}}}
// namespace Azure::Core::Http
Azure::Core::Http::HttpTransport::Send
virtual std::unique_ptr< RawResponse > Send(Request &request, Context const &context)=0
Send an HTTP request over the wire.
Azure::Core::Http::HttpTransport::~HttpTransport
virtual ~HttpTransport()
Destructs HttpTransport.
Definition:
transport.hpp:38
context.hpp
Context for canceling long running operations.
Azure::Core::Http::Request
A request message from a client to a server.
Definition:
http.hpp:176
Azure::Core::Http::HttpTransport::HttpTransport
HttpTransport(HttpTransport &&other)=default
Constructs HttpTransport by moving another instance of HttpTransport.
Azure::Core::Http::HttpTransport::HttpTransport
HttpTransport()=default
Constructs a default instance of HttpTransport.
Azure::Core::Http::HttpTransport::operator=
HttpTransport & operator=(const HttpTransport &other)=default
Assigns HttpTransport to another instance of HttpTransport.
Azure::Core::Http::HttpTransport::HttpTransport
HttpTransport(const HttpTransport &other)=default
Constructs HttpTransport by copying another instance of HttpTransport.
Azure
Azure SDK abstractions.
Definition:
azure_assert.hpp:55
http.hpp
HTTP request and response functionality.
Azure::Core::Http::HttpTransport
Base class for all HTTP transport implementations.
Definition:
transport.hpp:19
Azure::Core::Context
A context is a node within a tree that represents deadlines and key/value pairs.
Definition:
context.hpp:45
Generated by
1.8.18