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

#include <httpd.h>

Inheritance diagram for HTTPPage:
Inheritance graph
[legend]
Collaboration diagram for HTTPPage:
Collaboration graph
[legend]

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 ( const Anope::string u,
const Anope::string ct = "text/html" 
)
inline

Definition at line 94 of file httpd.h.

Member Function Documentation

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

Definition at line 98 of file httpd.h.

References content_type.

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

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

Definition at line 96 of file httpd.h.

References url.

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

Called when this page is requested

Parameters
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

Anope::string HTTPPage::content_type
private

Definition at line 91 of file httpd.h.

Referenced by GetContentType().

Anope::string HTTPPage::url
private

Definition at line 90 of file httpd.h.

Referenced by GetURL().


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