RestLink 2.2.0
Powerfull Rest Client for Qt
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | List of all members
RestLink::NetworkResponse Class Reference

#include <networkresponse.h>

Inherits RestLink::Response.

Public Slots

void ignoreSslErrors () override
 
void abort () override
 

Public Member Functions

 NetworkResponse (QObject *parent)
 
AbstractRequestHandler::Method method () const override
 
QNetworkRequest networkRequest () const override
 Retrieves the network request used in this response.
 
bool isFinished () const override
 Checks if the request has finished processing.
 
int httpStatusCode () const override
 
QString httpReasonPhrase () const override
 
bool hasHeader (const QByteArray &name) const override
 Checks if the response contains a specific header.
 
QByteArray header (const QByteArray &name) const override
 Retrieves the value of a specific header.
 
QByteArrayList headerList () const override
 
QByteArray readBody () override
 Reads the raw response body as a QByteArray.
 
int networkError () const override
 Retrieves the network error code.
 
QString networkErrorString () const override
 Retrieves a string description of the network error.
 
QNetworkReply * networkReply () const override
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ NetworkResponse()

RestLink::NetworkResponse::NetworkResponse ( QObject *  parent)
explicit

Member Function Documentation

◆ method()

AbstractRequestHandler::Method RestLink::NetworkResponse::method ( ) const
overridevirtual

Implements RestLink::Response.

◆ networkRequest()

QNetworkRequest RestLink::NetworkResponse::networkRequest ( ) const
overridevirtual

Retrieves the network request used in this response.

Returns
The QNetworkRequest object.

Implements RestLink::Response.

◆ isFinished()

bool RestLink::NetworkResponse::isFinished ( ) const
overridevirtual

Checks if the request has finished processing.

Returns
true if the request is finished, otherwise false.

Implements RestLink::Response.

◆ httpStatusCode()

int RestLink::NetworkResponse::httpStatusCode ( ) const
overridevirtual

Implements RestLink::Response.

◆ httpReasonPhrase()

QString RestLink::NetworkResponse::httpReasonPhrase ( ) const
overridevirtual

Reimplemented from RestLink::Response.

◆ hasHeader()

bool RestLink::NetworkResponse::hasHeader ( const QByteArray &  name) const
overridevirtual

Checks if the response contains a specific header.

Parameters
nameThe name of the header to check.
Returns
true if the header is present, otherwise false.

Reimplemented from RestLink::Response.

◆ header()

QByteArray RestLink::NetworkResponse::header ( const QByteArray &  name) const
overridevirtual

Retrieves the value of a specific header.

Parameters
headerThe name of the header to retrieve.
Returns
The header value as a QByteArray.

Implements RestLink::Response.

◆ headerList()

QByteArrayList RestLink::NetworkResponse::headerList ( ) const
overridevirtual

Implements RestLink::Response.

◆ readBody()

QByteArray RestLink::NetworkResponse::readBody ( )
overridevirtual

Reads the raw response body as a QByteArray.

Returns
The response body as a QByteArray.

Reimplemented from RestLink::ResponseBase.

◆ networkError()

int RestLink::NetworkResponse::networkError ( ) const
overridevirtual

Retrieves the network error code.

Returns
The network error code.

Reimplemented from RestLink::Response.

◆ networkErrorString()

QString RestLink::NetworkResponse::networkErrorString ( ) const
overridevirtual

Retrieves a string description of the network error.

Returns
The network error description as a QString.

Reimplemented from RestLink::Response.

◆ networkReply()

QNetworkReply * RestLink::NetworkResponse::networkReply ( ) const
overridevirtual

Implements RestLink::Response.

◆ ignoreSslErrors

void RestLink::NetworkResponse::ignoreSslErrors ( )
overrideslot

◆ abort

void RestLink::NetworkResponse::abort ( )
overrideslot