File Information
Library: JS/Net
Package: Wrappers
Header: Poco/JS/Net/HTTPRequestWrapper.h
Description
Base class for RequestHolder classes.
Inheritance
Known Derived Classes: RequestHolderImpl, RequestRefHolderImpl, RequestPtrHolderImpl
Member Summary
Member Functions: cancelRequest, content, getCancelHandler, getTimeout, request, setCancelHandler, setTimeout
Constructors
RequestHolder
Creates the RequestHolder.
Destructor
~RequestHolder
virtual ~RequestHolder();
Destroys the RequestHolder.
Member Functions
cancelRequest
void cancelRequest();
content
std::string & content();
content
const std::string & content() const;
getCancelHandler
CancelHandler::Ptr getCancelHandler() const;
getTimeout
const Poco::Timespan & getTimeout() const;
request
virtual Poco::Net::HTTPRequest & request() = 0;
setCancelHandler
void setCancelHandler(
CancelHandler::Ptr pCancelHandler
);
setTimeout
void setTimeout(
const Poco::Timespan timeout
);