NuriaProject Framework  0.1
The NuriaProject Framework
Public Member Functions | Friends | List of all members
Nuria::SlotInfo Class Reference

#include <httpnode.hpp>

Public Member Functions

 SlotInfo (const Callback &callback=Callback())
 
 SlotInfo (const SlotInfo &other)
 
 ~SlotInfo ()
 
HttpClient::HttpVerbs allowedVerbs () const
 
Callback callback () const
 
bool forceEncrypted () const
 
bool isValid () const
 
qint64 maxBodyLength () const
 
SlotInfooperator= (const SlotInfo &other)
 
void setAllowedVerbs (HttpClient::HttpVerbs verbs)
 
void setForceEncrypted (bool force)
 
void setMaxBodyLength (qint64 length)
 
void setStreamPostBody (bool value)
 
bool streamPostBody () const
 

Friends

class HttpNode
 

Detailed Description

Helper class for HttpNode. An instance is returned by HttpNode::connectSlot. You can use this class to fine-tune some settings for each slot.

Constructor & Destructor Documentation

Nuria::SlotInfo::SlotInfo ( const Callback callback = Callback())

Constructor.

Nuria::SlotInfo::SlotInfo ( const SlotInfo other)

Copy constructor.

Nuria::SlotInfo::~SlotInfo ( )

Destructor.

Member Function Documentation

HttpClient::HttpVerbs Nuria::SlotInfo::allowedVerbs ( ) const

Returns a bitmap of allowed verbs for this slot. By default all HTTP verbs are allowed.

Callback Nuria::SlotInfo::callback ( ) const

Returns the associated Callback.

bool Nuria::SlotInfo::forceEncrypted ( ) const

Returns true if this slot can only be invoked using a secure connection (HTTPS). Defaults to false.

bool Nuria::SlotInfo::isValid ( ) const

Returns true if this instance is valid.

qint64 Nuria::SlotInfo::maxBodyLength ( ) const

Returns the highest allowed POST body size. The default is 4MiB.

SlotInfo& Nuria::SlotInfo::operator= ( const SlotInfo other)

Assignment operator.

void Nuria::SlotInfo::setAllowedVerbs ( HttpClient::HttpVerbs  verbs)
See also
allowedVerbs
void Nuria::SlotInfo::setForceEncrypted ( bool  force)
See also
forceEncrypted
void Nuria::SlotInfo::setMaxBodyLength ( qint64  length)
See also
maxBodyLength
void Nuria::SlotInfo::setStreamPostBody ( bool  value)
See also
streamPostBody
bool Nuria::SlotInfo::streamPostBody ( ) const

Returns true if the POST body should be streamed. Defaults to false. Streaming the POST body means that the received data will always be stored in memory and is useful if you want to process received data immediatly.

Warning
When using streaming mode, but you're not piping the data into a QProcess, you must close the connection yourself!
Note
If you're in non-streaming mode, your slot will be called after the POST body has been transferred.

The documentation for this class was generated from the following file: