#include <XrdHttpHeaderUtils.hh>
Static Public Member Functions | |
| static void | parseReprDigest (const std::string &value, std::map< std::string, std::string > &output) |
| static void | parseWantReprDigest (const std::string &value, std::map< std::string, uint8_t > &output) |
Definition at line 30 of file XrdHttpHeaderUtils.hh.
|
static |
Parses the 'Repr-Digest' header value received from the client Syntax: "Repr-Digest: adler=:base64EncodedValue:, crc32=:base64EncodedValue:
| value | contains the value of the header Repr-Digest |
| output | the map containing the digests and their associated base64 encoded values |
Definition at line 31 of file XrdHttpHeaderUtils.cc.
References base64DecodeHex(), XrdOucTUtils::splitString(), and XrdOucUtils::trim().
Referenced by XrdHttpReq::parseLine().
|
static |
Parses 'Want-Repr-Digest' header value received from the client Syntax: "Want-Repr-Digest: adler=1, crc32=2, sha-256=9 The values are integers representing the preference, comprised between 0 and 9.
| value | contains the value of the header Want-Repr-Digest |
| output | the map containing the lower-cased digest name and the associated preference |
Definition at line 69 of file XrdHttpHeaderUtils.cc.
References XrdOucUtils::touint8_t(), and XrdOucUtils::trim().
Referenced by XrdHttpReq::parseLine().