Barefoot.CookieAdapter.Server

This mixin contains client specific code for the Barefoot.CookieAdapter component.

The server implementation gets its data from the Barefoot.Router.Server.route function.  As soon as the route handler is found, the current requests cookies are injected into the CookieAdapter.

After processing the route, all present cookie information is written back into the response object.

See also

Summary
Barefoot.CookieAdapter.ServerThis mixin contains client specific code for the Barefoot.CookieAdapter component.
Functions
getReturns a specific cookie value.
setSets the value of a cookie with the specified key.

Functions

get

function get(key)

Returns a specific cookie value.

Parameters

(String) keyThe key of the cookie which should be returned.

Returns

(String) the cookies value

set

function set(key,
value)

Sets the value of a cookie with the specified key.

Parameters

(String) keyThe key of the cookie you’d like to set
(String) valueThe value you’d like to set for the specified key
The CookieAdapter gives generalized access to cookies on the client and server side.
function get(key)
Returns a specific cookie value.
function set(key,
value)
Sets the value of a cookie with the specified key.
function route(routeUri)
This replacements for the route function of Backbone.Router ensures that each route defined in the router is added to the Express.JS app.
This mixin contains any server side specific code for the Barefoot.Router.
This mixin contains client specific code for the Barefoot.CookieAdapter component.
Close