opts() :: #{
}
gun_cookies_list - Cookie store backend: in-memory, per connection
The gun_cookies_list module implements a cookie store backend that keeps all the cookie data in-memory and tied to a specific connection.
It is possible to implement a custom backend on top of gun_cookies_list in order to add persistence or sharing properties. Note that it is the responsibility of the custom backend to provide cookies that conform to RFC6265 if they come from external sources (e.g. files), especially for the name, value, domain and path fields.
This module implements the callbacks defined in gun_cookies(3).
opts() :: #{
}
Cookie store backend options.
There are currently no options available for this backend.
{ok, ConnPid} = gun:open(Host, Port, #{
cookie_store => gun_cookies_list:init(#{})
})
Support my work on Cowboy, Ranch, Gun and Erlang.mk via GitHub Sponsors. The funds cover domain names and development tools.