The Cute::Server::HttpRequest class represents the parsed HTTP requests sent by clients to the server. More...
Header: | #include <HttpRequest> |
const QByteArray & | body() const |
QByteArray | header(const QByteArray &name) const |
int | headerCount(const QByteArray &name) const |
QVector<QByteArray> | headers(const QByteArray &name) const |
int | headersCount() const |
const QByteArray & | method() const |
const QUrl & | url() const |
The Cute::Server::HttpRequest class represents the parsed HTTP requests sent by clients to the server.
Returns the body of the HTTP request.
Returns the value of the header with name. If the HTTP request does not contain a header with name equal to name, an empty QByteArray is returned. If the request has many headers with the same name, the value returned is aleatory.
See also headerCount and headers.
Returns the number of headers in the HTTP request having the name equal to name.
Returns all values of headers named name. If the HTTP request does not contain a header named name, the returned vector is empty. Otherwise it contains the values from all the headers named name.
See also header and headerCount.
Returns the number of headers in the HTTP request.
Returns the HTTP request's method. The Cute server supports the DELETE, GET, POST, PATCH and PUT methods.
Returns the HTTP request URL.