HydroCoupleOgc  0.1.0
OGC web service clients (WMS, WMTS, WCS, WFS) over Qt Network (0.1.0)
Loading...
Searching...
No Matches
HydroCouple::Ogc::HttpResponse Struct Reference

What came back. More...

#include <httpclient.h>

Collaboration diagram for HydroCouple::Ogc::HttpResponse:

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.
 

Detailed Description

What came back.

Member Data Documentation

◆ body

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".

◆ contentType

QString HydroCouple::Ogc::HttpResponse::contentType

◆ error

QString HydroCouple::Ogc::HttpResponse::error

Why not, when ok is false.

◆ ok

bool HydroCouple::Ogc::HttpResponse::ok = false

Whether the body is the thing that was asked for.

◆ statusCode

int HydroCouple::Ogc::HttpResponse::statusCode = 0

The HTTP status, or 0 when the request never reached a server.

◆ url

QUrl HydroCouple::Ogc::HttpResponse::url

What was finally fetched, after any redirects.


The documentation for this struct was generated from the following file: