Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
HTTPPage Class Referenceabstract

#include <httpd.h>

Inheritance diagram for HTTPPage:
Inheritance graph
Collaboration diagram for HTTPPage:
Collaboration graph

Public Member Functions

 HTTPPage (const Anope::string &u, const Anope::string &ct="text/html")
const Anope::stringGetURL () const
const Anope::stringGetContentType () const
virtual bool OnRequest (HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &)=0
- Public Member Functions inherited from Base
 Base ()
virtual ~Base ()
void AddReference (ReferenceBase *r)
void DelReference (ReferenceBase *r)

Private Attributes

Anope::string url
Anope::string content_type

Detailed Description

Definition at line 88 of file httpd.h.

Constructor & Destructor Documentation

◆ HTTPPage()

HTTPPage::HTTPPage ( const Anope::string u,
const Anope::string ct = "text/html" 

Definition at line 94 of file httpd.h.

Member Function Documentation

◆ GetContentType()

const Anope::string& HTTPPage::GetContentType ( ) const

Definition at line 98 of file httpd.h.

References HTTPReply::content_type.

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

◆ GetURL()

const Anope::string& HTTPPage::GetURL ( ) const

Definition at line 96 of file httpd.h.

Referenced by MyHTTPProvider::RegisterPage(), and MyHTTPProvider::UnregisterPage().

◆ OnRequest()

virtual bool HTTPPage::OnRequest ( HTTPProvider ,
const Anope::string ,
HTTPClient ,
HTTPMessage ,
pure virtual

Called when this page is requested

Theserver this page is on
Thepage name
Theclient requesting the page
TheHTTP header sent from the client to request the page
TheHTTP header that will be sent back to the client

Implemented in MyXMLRPCServiceInterface, WebPanelProtectedPage, WebPanelPage, WebCPanel::Confirm, WebCPanel::Index, WebCPanel::Register, and StaticFileServer.

Referenced by MyHTTPClient::Serve().

Field Documentation

◆ content_type

Anope::string HTTPPage::content_type

Definition at line 91 of file httpd.h.

◆ url

Anope::string HTTPPage::url

Definition at line 90 of file httpd.h.

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