cutelyst 4.3.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst::ProtocolHttp Class Referencefinal
Inheritance diagram for Cutelyst::ProtocolHttp:

Public Member Functions

 ProtocolHttp (Server *wsgi, ProtocolHttp2 *upgradeH2c=nullptr)
 
ProtocolDatacreateData (Socket *sock) const override final
 
void parse (Socket *sock, QIODevice *io) const override final
 
Type type () const override
 
- Public Member Functions inherited from Cutelyst::Protocol
 Protocol (Server *wsgi)
 
QIODevicecreateBody (qint64 contentLength) const
 

Protected Attributes

ProtocolHttp2m_upgradeH2c
 
ProtocolWebSocketm_websocketProto
 
bool usingFrontendProxy
 

Friends

class ProtoRequestHttp
 

Additional Inherited Members

- Public Types inherited from Cutelyst::Protocol
enum class  Type {
  Unknown , Http11 , Http11Websocket , Http2 ,
  FastCGI1
}
 
- Public Attributes inherited from Cutelyst::Protocol
int m_bufferSize
 
char * m_postBuffer
 
qint64 m_postBuffering
 
qint64 m_postBufferSize
 
bool const useStats
 

Detailed Description

Definition at line 121 of file protocolhttp.h.

Constructor & Destructor Documentation

◆ ProtocolHttp()

ProtocolHttp::ProtocolHttp ( Server wsgi,
ProtocolHttp2 upgradeH2c = nullptr 
)

Definition at line 30 of file protocolhttp.cpp.

◆ ~ProtocolHttp()

ProtocolHttp::~ProtocolHttp ( )
override

Definition at line 38 of file protocolhttp.cpp.

Member Function Documentation

◆ createData()

ProtocolData * ProtocolHttp::createData ( Socket sock) const
finaloverridevirtual

Implements Cutelyst::Protocol.

Definition at line 191 of file protocolhttp.cpp.

◆ parse()

void ProtocolHttp::parse ( Socket sock,
QIODevice io 
) const
finaloverridevirtual

Implements Cutelyst::Protocol.

Definition at line 69 of file protocolhttp.cpp.

◆ type()

Protocol::Type ProtocolHttp::type ( ) const
overridevirtual

Reimplemented from Cutelyst::Protocol.

Definition at line 43 of file protocolhttp.cpp.

Friends And Related Symbol Documentation

◆ ProtoRequestHttp

friend class ProtoRequestHttp
friend

Definition at line 139 of file protocolhttp.h.

Member Data Documentation

◆ m_upgradeH2c

ProtocolHttp2* Cutelyst::ProtocolHttp::m_upgradeH2c
protected

Definition at line 142 of file protocolhttp.h.

◆ m_websocketProto

ProtocolWebSocket* Cutelyst::ProtocolHttp::m_websocketProto
protected

Definition at line 141 of file protocolhttp.h.

◆ usingFrontendProxy

bool Cutelyst::ProtocolHttp::usingFrontendProxy
protected

Definition at line 143 of file protocolhttp.h.