#include <HTTPResponse.h>
Inheritance diagram for HTTPResponse:
Public Member Functions | |
HTTPResponse (FILE *s, vector< string > *h, const string &temp_file) | |
virtual | ~HTTPResponse () |
Accessors | |
virtual vector< string > * | get_headers () const |
Accessors | |
virtual string | get_protocol () const |
virtual int | get_status () const |
virtual FILE * | get_stream () const |
virtual ObjectType | get_type () const |
virtual string | get_version () const |
Mutators | |
virtual void | set_headers (vector< string > *h) |
Mutators | |
virtual void | set_protocol (const string &p) |
virtual void | set_status (int s) |
virtual void | set_stream (FILE *s) |
virtual void | set_type (ObjectType o) |
virtual void | set_version (const string &v) |
Protected Member Functions | |
Suppressed default methods | |
HTTPResponse (const HTTPResponse &rs) | |
HTTPResponse () | |
HTTPResponse & | operator= (const HTTPResponse &) |
Definition at line 53 of file HTTPResponse.h.
|
Definition at line 62 of file HTTPResponse.h. |
|
Definition at line 64 of file HTTPResponse.h. |
|
Build an HTTPResponse object. An instance of this class is used to return an HTTP response (body and headers). If the response is really from a remote server, the current HTTP code stores the body in a temporary file and the headers in a vector<string> object. This class will delete those resources when its destructor is called. If the response does not have a temporary file that needs to be deleted (say it actually comes from a local cache or was read directly into memory), the temp file should be set to "".
Definition at line 88 of file HTTPResponse.h. |
|
When an instance is destroyed, free the temporary resources: the temp_file and headers are deleted. If the tmp file name is "", it is not deleted. Definition at line 100 of file HTTPResponse.h. References close_temp(), DBG, DBGN, dods_keep_temps, Response::get_stream(), and Response::set_stream(). |
Here is the call graph for this function:
|
Definition at line 115 of file HTTPResponse.h. Referenced by HTTPConnect::fetch_url(). |
|
|
Definition at line 97 of file Response.h. |
|
Reimplemented in PipeResponse, and StdinResponse. Definition at line 101 of file Response.h. Referenced by main(), AISMerge::merge(), Connect::request_das(), Connect::request_das_url(), Connect::request_dds(), Connect::request_dds_url(), Connect::request_ddx(), Connect::request_ddx_url(), HTTPCacheResponse::~HTTPCacheResponse(), and ~HTTPResponse(). |
|
Definition at line 105 of file Response.h. References ObjectType. Referenced by Connect::request_das(), Connect::request_das_url(), Connect::request_dds(), Connect::request_dds_url(), Connect::request_ddx(), and Connect::request_ddx_url(). |
|
|
Definition at line 66 of file HTTPResponse.h. |
|
Definition at line 123 of file HTTPResponse.h. |
|
Definition at line 137 of file Response.h. Referenced by HTTPConnect::fetch_url(). |
|
Definition at line 121 of file Response.h. |
|
Reimplemented in PipeResponse, and StdinResponse. Definition at line 125 of file Response.h. Referenced by ~HTTPResponse(). |
|
Definition at line 129 of file Response.h. Referenced by HTTPConnect::fetch_url(). |
|
Definition at line 133 of file Response.h. Referenced by HTTPConnect::fetch_url(). |