Poco::Net

class HTTPServerRequestImpl

Library: Net
Package: HTTPServer
Header: Poco/Net/HTTPServerRequestImpl.h

Description

This subclass of HTTPServerRequest is used for representing server-side HTTP requests.

A HTTPServerRequest is passed to the handleRequest() method of HTTPRequestHandler.

Inheritance

Direct Base Classes: HTTPServerRequest

All Base Classes: HTTPMessage, HTTPRequest, HTTPServerRequest, MessageHeader, NameValueCollection

Member Summary

Member Functions: clientAddress, detachSocket, expectContinue, response, serverAddress, serverParams, session, socket, stream

Inherited Functions: add, begin, clear, clientAddress, empty, end, erase, expectContinue, find, get, getChunkedTransferEncoding, getContentLength, getContentLength64, getContentType, getCookies, getCredentials, getFieldLimit, getHost, getKeepAlive, getMethod, getProxyCredentials, getTransferEncoding, getURI, getVersion, has, hasContentLength, hasCredentials, hasProxyCredentials, hasToken, operator =, operator [], quote, read, response, serverAddress, serverParams, set, setChunkedTransferEncoding, setContentLength, setContentLength64, setContentType, setCookies, setCredentials, setFieldLimit, setHost, setKeepAlive, setMethod, setProxyCredentials, setTransferEncoding, setURI, setVersion, size, splitElements, splitParameters, stream, swap, write

Constructors

HTTPServerRequestImpl

HTTPServerRequestImpl(
    HTTPServerResponseImpl & response,
    HTTPServerSession & session,
    HTTPServerParams * pParams
);

Creates the HTTPServerRequestImpl, using the given HTTPServerSession.

Destructor

~HTTPServerRequestImpl virtual

~HTTPServerRequestImpl();

Destroys the HTTPServerRequestImpl.

Member Functions

clientAddress virtual inline

const SocketAddress & clientAddress() const;

Returns the client's address.

detachSocket

StreamSocket detachSocket();

Returns the underlying socket after detaching it from the server session.

expectContinue virtual

bool expectContinue() const;

Returns true if the client expects a 100 Continue response.

response virtual inline

HTTPServerResponse & response() const;

Returns a reference to the associated response.

serverAddress virtual inline

const SocketAddress & serverAddress() const;

Returns the server's address.

serverParams virtual inline

const HTTPServerParams & serverParams() const;

Returns a reference to the server parameters.

session inline

HTTPServerSession & session();

Returns the underlying HTTPServerSession.

socket

StreamSocket & socket();

Returns a reference to the underlying socket.

stream virtual inline

std::istream & stream();

Returns the input stream for reading the request body.

The stream is valid until the HTTPServerRequestImpl object is destroyed.

Variables

EXPECT protected static

static const std::string EXPECT;