![]() |
HydroCoupleOgc
0.1.0
OGC web service clients (WMS, WMTS, WCS, WFS) over Qt Network (0.1.0)
|
What came back. More...
#include <httpclient.h>
Public Attributes | |
| bool | ok = false |
| Whether the body is the thing that was asked for. | |
| int | statusCode = 0 |
| The HTTP status, or 0 when the request never reached a server. | |
| QString | contentType |
| QByteArray | body |
| The body, delivered whether or not the request succeeded. | |
| QString | error |
| Why not, when ok is false. | |
| QUrl | url |
| What was finally fetched, after any redirects. | |
What came back.
| QByteArray HydroCouple::Ogc::HttpResponse::body |
The body, delivered whether or not the request succeeded.
A refusal from an OGC service is usually an XML document saying why, and it arrives under a 200 as often as under a 400. Throwing the body away on failure — as a client that checks the status first would — turns "layer FOO is not published here" into "Bad Request".
| QString HydroCouple::Ogc::HttpResponse::contentType |
| QString HydroCouple::Ogc::HttpResponse::error |
Why not, when ok is false.
| bool HydroCouple::Ogc::HttpResponse::ok = false |
Whether the body is the thing that was asked for.
| int HydroCouple::Ogc::HttpResponse::statusCode = 0 |
The HTTP status, or 0 when the request never reached a server.
| QUrl HydroCouple::Ogc::HttpResponse::url |
What was finally fetched, after any redirects.