Skip to content

Commit 84d838b

Browse files
Add documentation for handling RFC 6265 encoding/decoding
1 parent f41d4d8 commit 84d838b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ Cookies.remove('name', { path: '/' }); // => true
7272

7373
*Note: when deleting a cookie, you must pass the exact same path, domain and secure options that were used to set the cookie, unless you're relying on the default options that is.*
7474

75+
## RFC 6265
76+
77+
This project assumes [RFC 6265](http://tools.ietf.org/html/rfc6265#section-4.1.1) as a reference for everything. That said, some custom rules are applied in order to provide robustness and cross-browser compatibility.
78+
79+
### Encoding
80+
All special characters that are not allowed in the cookie-value or cookie-name in at least one supported browser are encoded/decoded with each UTF-8 Hex equivalent. Special characters that consistently work among all supported browsers are not encoded/decoded this way.
81+
7582
## Configuration
7683

7784
### json

0 commit comments

Comments
 (0)