29 #ifndef HYRAX_GIT_EFFECTIVEURL_H
30 #define HYRAX_GIT_EFFECTIVEURL_H
47 std::vector<std::string> d_response_header_names;
48 std::vector<std::string> d_response_header_values;
51 std::vector<std::string> d_resp_hdr_lines;
55 explicit EffectiveUrl(
const std::string &url_s,
const std::vector<std::string> &resp_hdrs) :
http::url(url_s) {
59 explicit EffectiveUrl(
const std::string &url_s) :
http::url(url_s), d_response_header_names(), d_response_header_values() {};
66 void get_header(
const std::string &name, std::string &value,
bool &found );
74 std::string
dump()
override;
std::string dump() override
A string dump of the instance.
bool is_expired() override
Returns true if URL is reusable, false otherwise.
void get_header(const std::string &name, std::string &value, bool &found)
get the value of the named header
void ingest_response_headers(const std::vector< std::string > &resp_hdrs)
Ingests the passed response hedaers.
void parse(const std::string &source_url)
utility class for the HTTP catalog module