Anope IRC Services  Version 2.0
Data Structures | Public Types | Public Member Functions | Data Fields
HTTPReply Struct Reference

#include <httpd.h>

Collaboration diagram for HTTPReply:
Collaboration graph
[legend]

Data Structures

struct  Data
 

Public Types

typedef std::list< std::pair
< Anope::string, Anope::string > > 
cookie
 

Public Member Functions

 HTTPReply ()
 
 HTTPReply (const HTTPReply &other)
 
 ~HTTPReply ()
 
void Write (const Anope::string &message)
 
void Write (const char *b, size_t l)
 

Data Fields

HTTPError error
 
Anope::string content_type
 
std::map< Anope::string,
Anope::string
headers
 
std::vector< cookiecookies
 
std::deque< Data * > out
 
size_t length
 

Detailed Description

Definition at line 14 of file httpd.h.

Member Typedef Documentation

typedef std::list<std::pair<Anope::string, Anope::string> > HTTPReply::cookie

Definition at line 19 of file httpd.h.

Constructor & Destructor Documentation

HTTPReply::HTTPReply ( )
inline

Definition at line 22 of file httpd.h.

HTTPReply::HTTPReply ( const HTTPReply other)
inline

Definition at line 24 of file httpd.h.

References content_type, cookies, headers, and out.

HTTPReply::~HTTPReply ( )
inline

Definition at line 34 of file httpd.h.

References out.

Member Function Documentation

void HTTPReply::Write ( const Anope::string message)
inline
void HTTPReply::Write ( const char *  b,
size_t  l 
)
inline

Definition at line 68 of file httpd.h.

Field Documentation

Anope::string HTTPReply::content_type

Definition at line 17 of file httpd.h.

Referenced by HTTPReply(), StaticFileServer::OnRequest(), and MyHTTPClient::Serve().

std::vector<cookie> HTTPReply::cookies

Definition at line 20 of file httpd.h.

Referenced by HTTPReply(), and WebpanelRequest::OnSuccess().

HTTPError HTTPReply::error
std::map<Anope::string, Anope::string> HTTPReply::headers
size_t HTTPReply::length

Definition at line 60 of file httpd.h.

std::deque<Data *> HTTPReply::out

Definition at line 59 of file httpd.h.

Referenced by HTTPReply(), and ~HTTPReply().


The documentation for this struct was generated from the following file: