GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • thttpresponse.h
  • thttpresponse.cpp

This view

  • Original page
  • New address

GeezerVison is showing api-reference.treefrogframework.org — TreeFrogFramework: THttpResponse Class Reference

TreeFrogFramework 2.10
Loading...
Searching...
No Matches
Public Member Functions | List of all members
THttpResponse Class Reference

#include <thttpresponse.h>

Public Member Functions

 THttpResponse ()
 
 THttpResponse (const THttpResponseHeader &header, const QByteArray &body)
 
 ~THttpResponse ()
 
THttpResponseHeader & header ()
 
const THttpResponseHeader & header () const
 
bool isBodyNull () const
 
void setBody (const QByteArray &body)
 
QByteArray body () const
 
void setBodyFile (const QString &filePath)
 
QIODevice * bodyIODevice ()
 
int64_t bodyLength () const
 
void clear ()
 

Detailed Description

The THttpResponse class contains response information for HTTP.

Constructor & Destructor Documentation

◆ THttpResponse() [1/2]

THttpResponse::THttpResponse ( )
inline

Constructor.

◆ THttpResponse() [2/2]

THttpResponse::THttpResponse ( const THttpResponseHeader &  header,
const QByteArray &  body 
)

Constructor with the header header and the body body.

◆ ~THttpResponse()

THttpResponse::~THttpResponse ( )

Destructor.

Member Function Documentation

◆ body()

QByteArray THttpResponse::body ( ) const

Returns the body.

◆ bodyIODevice()

QIODevice * THttpResponse::bodyIODevice ( )
inline

Returns the IO device of the body currently set.

◆ bodyLength()

int64_t THttpResponse::bodyLength ( ) const
inline

Returns the number of bytes of the body.

◆ clear()

void THttpResponse::clear ( )

◆ header() [1/2]

THttpResponseHeader & THttpResponse::header ( )
inline

Return the HTTP header.

◆ header() [2/2]

const THttpResponseHeader & THttpResponse::header ( ) const
inline

Return the HTTP header.

◆ isBodyNull()

bool THttpResponse::isBodyNull ( ) const

Returns true if the body is null; otherwise returns false.

◆ setBody()

void THttpResponse::setBody ( const QByteArray &  body)

Sets the body to body.

◆ setBodyFile()

void THttpResponse::setBodyFile ( const QString &  filePath)

Sets the file to read the content from the given filePath.


The documentation for this class was generated from the following files:
  • src/thttpresponse.h
  • src/thttpresponse.cpp
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.