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

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::stringheaders
std::vector< cookiecookies
std::deque< Data * > out
size_t length

Detailed Description

Definition at line 14 of file httpd.h.

Member Typedef Documentation

◆ cookie

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

Definition at line 19 of file httpd.h.

Constructor & Destructor Documentation

◆ HTTPReply() [1/2]

HTTPReply::HTTPReply ( )

Definition at line 22 of file httpd.h.

◆ HTTPReply() [2/2]

HTTPReply::HTTPReply ( const HTTPReply other)

Definition at line 24 of file httpd.h.

References content_type, cookies, headers, and out.

◆ ~HTTPReply()

HTTPReply::~HTTPReply ( )

Definition at line 34 of file httpd.h.

References out.

Member Function Documentation

◆ Write() [1/2]

void HTTPReply::Write ( const Anope::string message)

◆ Write() [2/2]

void HTTPReply::Write ( const char *  b,
size_t  l 

Definition at line 68 of file httpd.h.

References HTTPReply::Data::Data().

Field Documentation

◆ content_type

Anope::string HTTPReply::content_type

◆ cookies

std::vector<cookie> HTTPReply::cookies

Definition at line 20 of file httpd.h.

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

◆ error

HTTPError HTTPReply::error

◆ headers

std::map<Anope::string, Anope::string> HTTPReply::headers

◆ length

size_t HTTPReply::length

Definition at line 60 of file httpd.h.

◆ out

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: