MythTV  master
Public Member Functions | Public Attributes | List of all members
HttpServerExtension Class Referenceabstract

#include <httpserver.h>

Inheritance diagram for HttpServerExtension:
Inheritance graph
Collaboration diagram for HttpServerExtension:
Collaboration graph

Public Member Functions

 HttpServerExtension (QString sName, QString sSharePath)
 ~HttpServerExtension () override=default
virtual bool ProcessRequest (HTTPRequest *pRequest)=0
virtual bool ProcessOptions (HTTPRequest *pRequest)
 Handle an OPTIONS request. More...
virtual QStringList GetBasePaths ()=0
virtual int GetSocketTimeout () const

Public Attributes

QString m_sName
QString m_sSharePath
int m_nSocketTimeout { -1 }
uint m_nSupportedMethods

Detailed Description

Definition at line 71 of file httpserver.h.

Constructor & Destructor Documentation

◆ HttpServerExtension()

HttpServerExtension::HttpServerExtension ( QString  sName,
QString  sSharePath 

Definition at line 88 of file httpserver.h.

◆ ~HttpServerExtension()

HttpServerExtension::~HttpServerExtension ( )

Member Function Documentation

◆ ProcessRequest()

virtual bool HttpServerExtension::ProcessRequest ( HTTPRequest pRequest)
pure virtual

◆ ProcessOptions()

bool HttpServerExtension::ProcessOptions ( HTTPRequest pRequest)

Handle an OPTIONS request.

Definition at line 52 of file httpserver.cpp.

◆ GetBasePaths()

virtual QStringList HttpServerExtension::GetBasePaths ( )
pure virtual

◆ GetSocketTimeout()

virtual int HttpServerExtension::GetSocketTimeout ( ) const

Definition at line 99 of file httpserver.h.

Member Data Documentation

◆ m_sName

QString HttpServerExtension::m_sName

Definition at line 77 of file httpserver.h.

Referenced by ProcessOptions(), and HttpServer::RegisterExtension().

◆ m_sSharePath

QString HttpServerExtension::m_sSharePath

◆ m_nSocketTimeout

int HttpServerExtension::m_nSocketTimeout { -1 }

Definition at line 79 of file httpserver.h.

◆ m_nSupportedMethods

uint HttpServerExtension::m_nSupportedMethods

The documentation for this class was generated from the following files:
@ RequestTypePost
Definition: httprequest.h:50
@ RequestTypeOptions
Definition: httprequest.h:54
@ RequestTypeHead
Definition: httprequest.h:49
@ RequestTypeGet
Definition: httprequest.h:48