SoupWebsocketExtensionClass

The class structure for the #SoupWebsocketExtension.

Members

Variables

configure
bool function(SoupWebsocketExtension* extension, SoupWebsocketConnectionType connectionType, GHashTable* params, GError** _err) configure;

called to configure the extension with the given parameters

getRequestParams
char* function(SoupWebsocketExtension* extension) getRequestParams;

called by the client to build the request header. It should include the parameters string starting with ';'

getResponseParams
char* function(SoupWebsocketExtension* extension) getResponseParams;

called by the server to build the response header. It should include the parameters string starting with ';'

name
const(char)* name;

the name of the extension

padding
void*[6] padding;
parentClass
GObjectClass parentClass;

the parent class

processIncomingMessage
GBytes* function(SoupWebsocketExtension* extension, ubyte* header, GBytes* payload, GError** _err) processIncomingMessage;

called to process the payload data of a message after it's received. Reserved bits of the header should be cleared.

processOutgoingMessage
GBytes* function(SoupWebsocketExtension* extension, ubyte* header, GBytes* payload, GError** _err) processOutgoingMessage;

called to process the payload data of a message before it's sent. Reserved bits of the header should be changed.