/* */ #ifndef D_METALINK_HTTP_ENTRY_H #define D_METALINK_HTTP_ENTRY_H #include "common.h" #include namespace aria2 { // Holds values of Metalink/HTTP in Link header fields. Metalink/HTTP // is defined by http://tools.ietf.org/html/rfc6249 struct MetalinkHttpEntry { std::string uri; int pri; bool pref; std::string geo; MetalinkHttpEntry(); ~MetalinkHttpEntry(); void swap(MetalinkHttpEntry& c); bool operator<(const MetalinkHttpEntry& rhs) const; }; void swap(MetalinkHttpEntry& a, MetalinkHttpEntry& b); } // namespace aria2 #endif // D_METALINK_HTTP_ENTRY_H