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.
Barefoot. | This mixin contains client specific code for the Barefoot.CookieAdapter component. |
Functions | |
get | Returns a specific cookie value. |
set | Sets the value of a cookie with the specified key. |
Returns a specific cookie value.
function get( key )
Sets the value of a cookie with the specified key.
function set( key, value )
This replacements for the route function of Backbone.Router ensures that each route defined in the router is added to the Express.JS app.
function route( routeUri )