Library: Net
Package: HTTPServer
Header: Poco/Net/HTTPServerRequest.h
This subclass of HTTPRequest is used for representing server-side HTTP requests.
A HTTPServerRequest is passed to the handleRequest() method of HTTPRequestHandler.
Direct Base Classes: HTTPRequest
All Base Classes: HTTPMessage, HTTPRequest, MessageHeader, NameValueCollection
Member Functions: clientAddress, expectContinue, serverAddress, serverParams, stream
Inherited Functions: add, begin, clear, empty, end, erase, find, get, getChunkedTransferEncoding, getContentLength, getContentType, getCookies, getCredentials, getHost, getKeepAlive, getMethod, getTransferEncoding, getURI, getVersion, has, hasCredentials, operator, operator =, quote, read, set, setChunkedTransferEncoding, setContentLength, setContentType, setCookies, setCredentials, setHost, setKeepAlive, setMethod, setTransferEncoding, setURI, setVersion, size, splitElements, splitParameters, swap, write
HTTPServerRequest(
HTTPServerSession & session,
HTTPServerParams * pParams
);
Creates the HTTPServerRequest, using the given HTTPServerSession.
Destroys the HTTPServerRequest.
const SocketAddress & clientAddress() const;
Returns the client's address.
bool expectContinue() const;
Returns true if the client expects a 100 Continue response.
const SocketAddress & serverAddress() const;
Returns the server's address.
const HTTPServerParams & serverParams() const;
Returns a reference to the server parameters.
std::istream & stream();
Returns the input stream for reading the request body.
The stream is valid until the HTTPServerRequest object is destroyed.