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

Public Types

enum  HeaderConnection { NotSet, Keep, Close, Upgrade }
 
enum  ParserState { MethodLine, HeaderLine, ContentBody, H2Frames }
 

Public Member Functions

 ProtocolData (Socket *sock, int bufferSize)
 
virtual void resetData ()
 
virtual void setupNewConnection (Socket *sock)=0
 
virtual void socketDisconnected ()
 

Public Attributes

int buf_size
 
char * buffer
 
ParserState connState
 
qint64 contentLength
 
HeaderConnection headerConnection
 
bool headerHost
 
QIODeviceio
 
Socketsock
 
ProtocolDataupgradedFrom
 
bool X_Forwarded_For
 
bool X_Forwarded_Host
 
bool X_Forwarded_Proto
 

Detailed Description

Definition at line 18 of file protocol.h.