Poco::JS::Net

class RequestHolder

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

RequestHolder();

Creates the RequestHolder.

Destructor

~RequestHolder virtual

virtual ~RequestHolder();

Destroys the RequestHolder.

Member Functions

cancelRequest inline

void cancelRequest();

content inline

std::string & content();

content inline

const std::string & content() const;

getCancelHandler inline

CancelHandler::Ptr getCancelHandler() const;

getTimeout inline

const Poco::Timespan & getTimeout() const;

request virtual

virtual Poco::Net::HTTPRequest & request() = 0;

setCancelHandler inline

void setCancelHandler(
    CancelHandler::Ptr pCancelHandler
);

setTimeout inline

void setTimeout(
    const Poco::Timespan timeout
);

Securely control IoT edge devices from anywhere   Connect a Device