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

#include <libmythupnp/httpserver.h>

Inheritance diagram for HttpServerExtension:
[legend]
Collaboration diagram for HttpServerExtension:
[legend]

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 
)
inline

Definition at line 88 of file httpserver.h.

◆ ~HttpServerExtension()

HttpServerExtension::~HttpServerExtension ( )
overridedefault

Member Function Documentation

◆ ProcessRequest()

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

◆ ProcessOptions()

bool HttpServerExtension::ProcessOptions ( HTTPRequest pRequest)
virtual

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
inlinevirtual

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:
RequestTypeGet
@ RequestTypeGet
Definition: httprequest.h:48
RequestTypePost
@ RequestTypePost
Definition: httprequest.h:50
RequestTypeOptions
@ RequestTypeOptions
Definition: httprequest.h:54
RequestTypeHead
@ RequestTypeHead
Definition: httprequest.h:49