Represents a request to a CoAP server. More...
Header: | #include <CoapRequest> |
CoapRequest(const QUrl & url = QUrl()) | |
CoapPdu::ContentType | contentType() const |
CoapPdu::MessageType | messageType() const |
void | setContentType(const CoapPdu::ContentType contentType = CoapPdu::TextPlain) |
void | setMessageType(const CoapPdu::MessageType & messageType) |
void | setUrl(const QUrl & url) |
QUrl | url() const |
Represents a request to a CoAP server.
Constructs a CoAP request for the given url.
Returns the content format of the payload.
See also setContentType().
Returns the message type of this CoapRequest.
See also setMessageType().
Sets the ContentType of this CoAP request to the given contentType. This method will only be used with the PUT and POST method and should describe the content format of the payload.
See also contentType().
Sets the MessageType of this CoAP request to the given messageType.
See also messageType().
Sets the URL of this CoAP request to the given url.
See also url().
Returns the URL of this CoAP request.
See also setUrl().