#include <httpnode.hpp>
Helper class for HttpNode. An instance is returned by HttpNode::connectSlot. You can use this class to fine-tune some settings for each slot.
| Nuria::SlotInfo::SlotInfo |
( |
const SlotInfo & |
other | ) |
|
| Nuria::SlotInfo::~SlotInfo |
( |
| ) |
|
| 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 |
| 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.
| void Nuria::SlotInfo::setAllowedVerbs |
( |
HttpClient::HttpVerbs |
verbs | ) |
|
| void Nuria::SlotInfo::setForceEncrypted |
( |
bool |
force | ) |
|
| void Nuria::SlotInfo::setMaxBodyLength |
( |
qint64 |
length | ) |
|
| void Nuria::SlotInfo::setStreamPostBody |
( |
bool |
value | ) |
|
| 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: