Function setKey

Summary

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

(1) void setKey(const std::string &key)

(2) void setKey(std::string &&key)

Function overload

Synopsis

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

void setKey(const std::string &key)

Description

Set the key of the cookie.

Source

Lines 96-99 in lib/inc/drogon/Cookie.h.

void setKey(const std::string &key)
{
    key_ = key;
}

Synopsis

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

void setKey(std::string &&key)

Description

No description yet.

Source

Lines 100-103 in lib/inc/drogon/Cookie.h.

void setKey(std::string &&key)
{
    key_ = std::move(key);
}





Add Discussion as Guest

Log in to DocsForge