XRootD
Loading...
Searching...
No Matches
XrdHttpTpcUtils.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// This file is part of XrdHttpTpcTPC
3
//
4
// Copyright (c) 2023 by European Organization for Nuclear Research (CERN)
5
// Author: Cedric Caffy <ccaffy@cern.ch>
6
// File Date: Oct 2023
7
//------------------------------------------------------------------------------
8
// XRootD is free software: you can redistribute it and/or modify
9
// it under the terms of the GNU Lesser General Public License as published by
10
// the Free Software Foundation, either version 3 of the License, or
11
// (at your option) any later version.
12
//
13
// XRootD is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
// GNU General Public License for more details.
17
//
18
// You should have received a copy of the GNU Lesser General Public License
19
// along with XRootD. If not, see <http://www.gnu.org/licenses/>.
20
//------------------------------------------------------------------------------
21
22
#ifndef XROOTD_XRDTPCUTILS_HH
23
#define XROOTD_XRDTPCUTILS_HH
24
25
#include <string>
26
#include "
XrdHttp/XrdHttpExtHandler.hh
"
27
28
namespace
TPC
{
29
class
TPCHandler
;
30
}
31
32
33
class
XrdHttpTpcUtils
{
34
public
:
35
struct
PrepareOpenURLParams
{
36
PrepareOpenURLParams
(
const
std::string & reqResourceParm,
37
std::map<std::string,std::string> & reqHeadersParm,
38
const
std::map<std::string,std::string> & hdr2cgimapParm,
39
const
std::map<std::string,std::string> & reprDigestParm):
40
reqResource
(reqResourceParm),
reqHeaders
(reqHeadersParm),
hdr2cgimap
(hdr2cgimapParm),
reprDigest
(reprDigestParm){}
41
42
const
std::string &
reqResource
;
43
std::map<std::string,std::string> &
reqHeaders
;
44
const
std::map<std::string,std::string> &
hdr2cgimap
;
45
const
std::map<std::string,std::string> &
reprDigest
;
46
};
47
66
static
std::string
prepareOpenURL
(
PrepareOpenURLParams
& params);
67
};
68
69
70
#endif
//XROOTD_XRDTPCUTILS_HH
XrdHttpExtHandler.hh
TPC::TPCHandler
Definition
XrdHttpTpcTPC.hh:48
XrdHttpTpcUtils
Definition
XrdHttpTpcUtils.hh:33
XrdHttpTpcUtils::prepareOpenURL
static std::string prepareOpenURL(PrepareOpenURLParams ¶ms)
Definition
XrdHttpTpcUtils.cc:27
TPC
Definition
XrdHttpTpcPMarkManager.hh:34
XrdHttpTpcUtils::PrepareOpenURLParams
Definition
XrdHttpTpcUtils.hh:35
XrdHttpTpcUtils::PrepareOpenURLParams::reprDigest
const std::map< std::string, std::string > & reprDigest
Definition
XrdHttpTpcUtils.hh:45
XrdHttpTpcUtils::PrepareOpenURLParams::PrepareOpenURLParams
PrepareOpenURLParams(const std::string &reqResourceParm, std::map< std::string, std::string > &reqHeadersParm, const std::map< std::string, std::string > &hdr2cgimapParm, const std::map< std::string, std::string > &reprDigestParm)
Definition
XrdHttpTpcUtils.hh:36
XrdHttpTpcUtils::PrepareOpenURLParams::reqResource
const std::string & reqResource
Definition
XrdHttpTpcUtils.hh:42
XrdHttpTpcUtils::PrepareOpenURLParams::hdr2cgimap
const std::map< std::string, std::string > & hdr2cgimap
Definition
XrdHttpTpcUtils.hh:44
XrdHttpTpcUtils::PrepareOpenURLParams::reqHeaders
std::map< std::string, std::string > & reqHeaders
Definition
XrdHttpTpcUtils.hh:43
XrdHttpTpc
XrdHttpTpcUtils.hh
Generated by
1.15.0