Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / cookie / README.md
1 # cookie\r
2 \r
3 [![NPM Version][npm-image]][npm-url]\r
4 [![NPM Downloads][downloads-image]][downloads-url]\r
5 [![Node.js Version][node-version-image]][node-version-url]\r
6 [![Build Status][travis-image]][travis-url]\r
7 [![Test Coverage][coveralls-image]][coveralls-url]\r
8 \r
9 cookie is a basic cookie parser and serializer. It doesn't make assumptions about how you are going to deal with your cookies. It basically just provides a way to read and write the HTTP cookie headers.\r
10 \r
11 See [RFC6265](http://tools.ietf.org/html/rfc6265) for details about the http header for cookies.\r
12 \r
13 ## how?\r
14 \r
15 ```\r
16 npm install cookie\r
17 ```\r
18 \r
19 ```javascript\r
20 var cookie = require('cookie');\r
21 \r
22 var hdr = cookie.serialize('foo', 'bar');\r
23 // hdr = 'foo=bar';\r
24 \r
25 var cookies = cookie.parse('foo=bar; cat=meow; dog=ruff');\r
26 // cookies = { foo: 'bar', cat: 'meow', dog: 'ruff' };\r
27 ```\r
28 \r
29 ## more\r
30 \r
31 The serialize function takes a third parameter, an object, to set cookie options. See the RFC for valid values.\r
32 \r
33 ### path\r
34 > cookie path\r
35 \r
36 ### expires\r
37 > absolute expiration date for the cookie (Date object)\r
38 \r
39 ### maxAge\r
40 > relative max age of the cookie from when the client receives it (seconds)\r
41 \r
42 ### domain\r
43 > domain for the cookie\r
44 \r
45 ### secure\r
46 > true or false\r
47 \r
48 ### httpOnly\r
49 > true or false\r
50 \r
51 ## License\r
52 \r
53 [MIT](LICENSE)\r
54 \r
55 [npm-image]: https://img.shields.io/npm/v/cookie.svg\r
56 [npm-url]: https://npmjs.org/package/cookie\r
57 [node-version-image]: https://img.shields.io/node/v/cookie.svg\r
58 [node-version-url]: http://nodejs.org/download/\r
59 [travis-image]: https://img.shields.io/travis/jshttp/cookie/master.svg\r
60 [travis-url]: https://travis-ci.org/jshttp/cookie\r
61 [coveralls-image]: https://img.shields.io/coveralls/jshttp/cookie/master.svg\r
62 [coveralls-url]: https://coveralls.io/r/jshttp/cookie?branch=master\r
63 [downloads-image]: https://img.shields.io/npm/dm/cookie.svg\r
64 [downloads-url]: https://npmjs.org/package/cookie\r