0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/examples/cookie
Loïc Hoguin 91ae70b06c
Change the order of set_resp_cookie arguments
The Opts value is put last, to be more consistent with the
rest of the cowboy_req module.

Additionally a test handler was fixed which reduced the number
of errors in http_SUITE.
2017-02-19 09:46:11 +01:00
..
src Change the order of set_resp_cookie arguments 2017-02-19 09:46:11 +01:00
templates Add cookie example 2012-12-20 14:40:22 +01:00
Makefile Simplify specifying the Cowboy version in examples 2016-01-14 22:58:22 +01:00
README.asciidoc Simplify example instructions and fix broken examples 2016-01-14 20:00:50 +01:00
relx.config Convert the cookie example to a release 2013-09-07 21:58:03 +02:00

= Cookie example

To try this example, you need GNU `make` and `git` in your PATH.

To build and run the example, use the following command:

[source,bash]
$ make run

Then point your browser to http://localhost:8080

This example allows you to use any path to show that the cookies
are defined site-wide. Try it!