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

Public Types

enum class  Type {
  Unknown , Http11 , Http11Websocket , Http2 ,
  FastCGI1
}
 

Public Member Functions

 Protocol (Server *wsgi)
 
QIODevicecreateBody (qint64 contentLength) const
 
virtual ProtocolDatacreateData (Socket *sock) const =0
 
virtual void parse (Socket *sock, QIODevice *io) const =0
 
virtual Type type () const
 

Public Attributes

int m_bufferSize
 
char * m_postBuffer
 
qint64 m_postBuffering
 
qint64 m_postBufferSize
 
bool const useStats
 

Detailed Description

Definition at line 69 of file protocol.h.

Member Enumeration Documentation

◆ Type

enum class Cutelyst::Protocol::Type
strong

Definition at line 73 of file protocol.h.

Constructor & Destructor Documentation

◆ Protocol()

Cutelyst::Protocol::Protocol ( Cutelyst::Server server)

Definition at line 37 of file protocol.cpp.

◆ ~Protocol()

Cutelyst::Protocol::~Protocol ( )
virtual

Definition at line 46 of file protocol.cpp.

Member Function Documentation

◆ createBody()

QIODevice * Cutelyst::Protocol::createBody ( qint64  contentLength) const

Definition at line 56 of file protocol.cpp.

◆ type()

Cutelyst::Protocol::Type Cutelyst::Protocol::type ( ) const
virtual

Definition at line 51 of file protocol.cpp.

Member Data Documentation

◆ m_bufferSize

int Cutelyst::Protocol::m_bufferSize

Definition at line 90 of file protocol.h.

◆ m_postBuffer

char* Cutelyst::Protocol::m_postBuffer

Definition at line 89 of file protocol.h.

◆ m_postBuffering

qint64 Cutelyst::Protocol::m_postBuffering

Definition at line 88 of file protocol.h.

◆ m_postBufferSize

qint64 Cutelyst::Protocol::m_postBufferSize

Definition at line 87 of file protocol.h.

◆ useStats

bool const Cutelyst::Protocol::useStats

Definition at line 91 of file protocol.h.