PTLib  Version 2.10.4
PHTTPRequest Class Reference

This object describes a HyperText Transport Protocol request. More...

#include <http.h>

Inheritance diagram for PHTTPRequest:
PObject PHTTPFileRequest PHTTPDirRequest

List of all members.

Public Member Functions

 PHTTPRequest (const PURL &url, const PMIMEInfo &inMIME, const PMultiPartList &multipartFormInfo, PHTTPResource *resource, PHTTPServer &server)

Public Attributes

PHTTPServerserver
 Server channel that request initiated on.
const PURLurl
 Universal Resource Locator for document.
const PMIMEInfoinMIME
 Extra MIME information in command.
const PMultiPartListmultipartFormInfo
 multipart form information, if any
PHTTP::StatusCode code
 Status code for OnError() reply.
PMIMEInfo outMIME
 MIME information used in reply.
PString entityBody
 original entity body (POST only)
PINDEX contentSize
 Size of the body of the resource data.
PIPSocket::Address origin
 IP address of origin host for request.
PIPSocket::Address localAddr
 IP address of local interface for request.
WORD localPort
 Port number of local server for request.
PHTTPResourcem_resource
 HTTP resource found for the request.

Detailed Description

This object describes a HyperText Transport Protocol request.

An individual request is passed to handler functions on PHTTPResource descendant classes.


Constructor & Destructor Documentation

PHTTPRequest::PHTTPRequest ( const PURL url,
const PMIMEInfo inMIME,
const PMultiPartList multipartFormInfo,
PHTTPResource resource,
PHTTPServer server 
)
Parameters:
urlUniversal Resource Locator for document.
inMIMEExtra MIME information in command.
multipartFormInfomultipart form information (if any)
resourceResource associated with request
serverServer channel that request initiated on

Member Data Documentation

Status code for OnError() reply.

Size of the body of the resource data.

original entity body (POST only)

Extra MIME information in command.

IP address of local interface for request.

Port number of local server for request.

HTTP resource found for the request.

multipart form information, if any

IP address of origin host for request.

MIME information used in reply.

Server channel that request initiated on.

Universal Resource Locator for document.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines