Function addCookie

Summary

#include <lib/inc/drogon/HttpClient.h>

(1) virtual void addCookie(const std::string &key, const std::string &value)=0

(2) virtual void addCookie(const Cookie &cookie)=0

Function overload

Synopsis

#include <lib/inc/drogon/HttpClient.h>

virtual void addCookie(const std::string &key, const std::string &value)=0

Description

Add a cookie to the client.

Note
These methods are independent of the enableCookies() method. Whether the enableCookies() is called with true or false, the cookies added by these methods will be sent to the server.

Source

Line 142 in lib/inc/drogon/HttpClient.h.

Synopsis

#include <lib/inc/drogon/HttpClient.h>

virtual void addCookie(const Cookie &cookie)=0

Description

Add a cookie to the client.

Note
These methods are independent of the enableCookies() method. Whether the enableCookies() is called with true or false, the cookies added by these methods will be sent to the server.

Source

Line 152 in lib/inc/drogon/HttpClient.h.






Add Discussion as Guest

Log in to DocsForge