Poco::JS::Net

class CookieJar

File Information

Library: JS/Net
Package: Wrappers
Header: Poco/JS/Net/CookieJar.h

Description

A CookieJar object stores cookies set by a HTTP server.

This class is used sharing session cookies among multiple HTTP requests to the same server.

Member Summary

Member Functions: addCookies, updateCookies

Constructors

CookieJar

CookieJar();

Creates an empty CookieJar.

Destructor

~CookieJar

~CookieJar();

Destroys the CookieJar.

Member Functions

addCookies

void addCookies(
    Poco::Net::HTTPRequest & request
);

Adds the stored cookies to the given request object.

updateCookies

void updateCookies(
    const Poco::Net::HTTPResponse & response
);

Updates the stored cookies with the cookies from the given response object.

Securely control IoT edge devices from anywhere   Connect a Device