#include <http.h>
Public Member Functions | |
| Http (QString host, quint16 port=80) | |
| bool | request (QString path) |
| QString | body () |
Private Attributes | |
| QByteArray | _response |
Definition at line 34 of file http.h.
| bool Http::request | ( | QString | path | ) |
Requests the given file from the specified host.
Executes a single request for the given file. User input is blocked while the request is executing, so this should only be used for very small requests.
| path | the file to request. |
Definition at line 44 of file http.cpp.
References _response.
| QString Http::body | ( | ) |
QByteArray Http::_response [private] |
1.5.3