version 3.3

VRS::HttpResponseHeader Class Reference

Copy of QHttpResponseHeader (from public qhttp.cpp) with different visibility modifiers to have a public setStatusLine(). More...

#include <vrs/qt3/httpserver/httpresponseheader.h>

List of all members.

Public Member Functions

 HttpResponseHeader ()
 HttpResponseHeader (int code, const QString &text, int majorVer=1, int minorVer=1)
 HttpResponseHeader (const HttpResponseHeader &header)
 HttpResponseHeader (const QString &str)
void setStatusLine (int code=200, const QString &text="Ok", int majorVer=1, int minorVer=1)
int statusCode () const
QString reasonPhrase () const
int majorVersion () const
int minorVersion () const
QString toString () const


Detailed Description

Copy of QHttpResponseHeader (from public qhttp.cpp) with different visibility modifiers to have a public setStatusLine().

Constructor & Destructor Documentation

VRS::HttpResponseHeader::HttpResponseHeader (  ) 

VRS::HttpResponseHeader::HttpResponseHeader ( int  code,
const QString &  text,
int  majorVer = 1,
int  minorVer = 1 
)

VRS::HttpResponseHeader::HttpResponseHeader ( const HttpResponseHeader header  ) 

VRS::HttpResponseHeader::HttpResponseHeader ( const QString &  str  ) 


Member Function Documentation

void VRS::HttpResponseHeader::setStatusLine ( int  code = 200,
const QString &  text = "Ok",
int  majorVer = 1,
int  minorVer = 1 
)

Status-Codes from HTTP RFC 2616 =============================== 100 Continue 101 Switching Protocols 200 OK 201 Created 202 Accepted 203 Non-Authoritative Information 204 No Content 205 Reset Content 206 Partial Content 300 Multiple Choices 301 Moved Permanently 302 Found 303 See Other 304 Not Modified 305 Use Proxy 307 Temporary Redirect 400 Bad Request 401 Unauthorized 402 Payment Required 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Time-out 409 Conflict 410 Gone 411 Length Required 412 Precondition Failed 413 Request Entity Too Large 414 Request-URI Too Large 415 Unsupported Media Type 416 Requested range not satisfiable 417 Expectation Failed 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Time-out 505 HTTP Version not supported

int VRS::HttpResponseHeader::statusCode (  )  const

QString VRS::HttpResponseHeader::reasonPhrase (  )  const

int VRS::HttpResponseHeader::majorVersion (  )  const

int VRS::HttpResponseHeader::minorVersion (  )  const

QString VRS::HttpResponseHeader::toString (  )  const


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

Generated on Mon May 21 06:00:24 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact