SSS - S3 Toolkit 0.9.6
S3 client library and applications
Loading...
Searching...
No Matches
response_parser.h File Reference

Functions to parse XML and HTTP headers. More...

#include <regex>
#include <string>
#include <vector>
#include "common.h"
+ Include dependency graph for response_parser.h:
+ This graph shows which files directly or indirectly include this file:

Functions

std::string sss::XMLTag (const std::string &xml, const std::string &tag)
 Extract and return content of XML tag.
 
std::vector< std::string > sss::XMLTags (const std::string &xml, const std::string &tag)
 Extract and return content of all XML tags matching word.
 
std::string sss::XMLTagPath (const std::string &xml, const std::string &path)
 Extract and return content of XML tag matching hierchical path.
 
std::string sss::HTTPHeader (const std::string &headers, const std::string &header)
 Extract and return HTTP header.
 
Headers sss::HTTPHeaders (const std::string &headers)
 Extract and return HTTP headers as key-value pairs.
 
MetaDataMap sss::MetaDataHeaders (const std::string &headers)
 Extract and return x-amz-meta-* headers.
 
std::string sss::TrimETag (const std::string &etag)
 Extract ETag string from returned etag text.
 

Detailed Description

Functions to parse XML and HTTP headers.