30class EXPCL_PANDA_DOWNLOADER DocumentSpec {
32 INLINE DocumentSpec();
33 INLINE DocumentSpec(
const std::string &url);
34 INLINE DocumentSpec(
const URLSpec &url);
35 INLINE DocumentSpec(
const DocumentSpec ©);
36 INLINE
void operator = (
const DocumentSpec ©);
38 INLINE
bool operator == (
const DocumentSpec &other)
const;
39 INLINE
bool operator != (
const DocumentSpec &other)
const;
40 INLINE
bool operator < (
const DocumentSpec &other)
const;
41 int compare_to(
const DocumentSpec &other)
const;
75 bool input(std::istream &in);
76 void output(std::ostream &out)
const;
77 void write(std::ostream &out,
int indent_level = 0)
const;
91 RequestMode _request_mode;
92 CacheControl _cache_control;
101INLINE std::istream &operator >> (std::istream &in,
DocumentSpec &doc);
102INLINE std::ostream &operator << (std::ostream &out,
const DocumentSpec &doc);
A descriptor that refers to a particular version of a document.
set_date
Changes the last-modified date associated with the DocumentSpec.
set_cache_control
Specifies what kind of cached value is acceptable for this document.
get_cache_control
Returns the request mode of this DocumentSpec.
set_tag
Changes the identity tag associated with the DocumentSpec.
get_request_mode
Returns the request mode of this DocumentSpec.
get_url
Retrieves the URL of the DocumentSpec.
set_url
Changes the URL of the DocumentSpec without modifying its other properties.
get_tag
Returns the identity tag associated with the DocumentSpec, if there is one.
set_request_mode
Sets the request mode of this DocumentSpec.
clear_date
Removes the last-modified date associated with the DocumentSpec, if there is one.
get_date
Returns the last-modified date associated with the DocumentSpec, if there is one.
clear_tag
Removes the identity tag associated with the DocumentSpec, if there is one.
has_date
Returns true if a last-modified date is associated with the DocumentSpec.
bool input(std::istream &in)
Can be used to read in the DocumentSpec from a stream generated either by output() or write().
has_tag
Returns true if an identity tag is associated with the DocumentSpec.
A container for an HTTP-legal time/date indication.
A container for an "entity tag" from an HTTP server.
A container for a URL, e.g.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.