Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Docs

  • Loading branch information...
commit 25b41164ac8eb3db207f2491490eaa217350732c 1 parent eabdc96
@akaspin authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 chain/cookie.md
View
11 chain/cookie.md
@@ -97,7 +97,7 @@ If for any reason you don't want to decorate `writeHead` method, just add
In this case `writeHead` method remains untouched and you can get all setted
cookies by `deploy` method, that returns `Array` of prepared cookies.
-## Kaph chain usage
+## Usage in Kaph chain
This module provides *operation* to use with *kaph*. Usage is similar to that
described above. With one difference - operation creates a new object `cookies`
@@ -126,3 +126,12 @@ inside *kaph* handler.
## Pitfalls
+All pitfalls of this module concluded that "kaph" decorates `writeHead` method
+of `http.ServerResponse` instance. If you use any architecture, that also
+decorates this method - use *Kaph cookie* **after** all other decorations.
+
+For usage with *kaph* chain I recommend insert cookie *Operation* after all
+others that may decorate `writeHead` method, and just before operations that
+can write to `response`.
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.