XRootD
Loading...
Searching...
No Matches
XrdClHttpHeaderCallout.hh
Go to the documentation of this file.
1
/***************************************************************
2
*
3
* Copyright (C) 2025, Morgridge Institute for Research
4
*
5
***************************************************************/
6
7
#ifndef XRDCLHTTP_CURLHEADER_CALLOUT_HH
8
#define XRDCLHTTP_CURLHEADER_CALLOUT_HH
9
10
#include <memory>
11
#include <string>
12
#include <utility>
13
#include <vector>
14
15
namespace
XrdClHttp
{
16
17
class
HeaderCallout
{
18
public
:
19
// A list of headers, represented as pairs of strings (name, value).
20
using
HeaderList
= std::vector<std::pair<std::string, std::string>>;
21
22
virtual
~HeaderCallout
() noexcept = default;
23
24
// Return a header list based on the HTTP `verb`, `url`, and existing headers.
25
virtual std::shared_ptr<
HeaderList
>
GetHeaders
(const std::
string
&verb, const std::
string
&url, const
HeaderList
&headers) = 0;
26
};
27
28
}
29
30
#endif
// XRDCLHTTP_CURLHEADER_CALLOUT_HH
XrdClHttp::HeaderCallout
Definition
XrdClHttpHeaderCallout.hh:17
XrdClHttp::HeaderCallout::~HeaderCallout
virtual ~HeaderCallout() noexcept=default
XrdClHttp::HeaderCallout::GetHeaders
virtual std::shared_ptr< HeaderList > GetHeaders(const std::string &verb, const std::string &url, const HeaderList &headers)=0
XrdClHttp::HeaderCallout::HeaderList
std::vector< std::pair< std::string, std::string > > HeaderList
Definition
XrdClHttpHeaderCallout.hh:20
XrdClHttp
Definition
XrdClHttpChecksum.hh:28
XrdClHttp
XrdClHttpHeaderCallout.hh
Generated by
1.15.0