mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Explain that passing Req around leads to undefined behavior
This commit is contained in:
parent
15da836d2a
commit
993606ede8
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ All functions which perform an action should only be called once.
|
||||||
This includes reading the request body or replying. Cowboy will
|
This includes reading the request body or replying. Cowboy will
|
||||||
generally throw an error on the second call.
|
generally throw an error on the second call.
|
||||||
|
|
||||||
|
It is highly discouraged to pass the Req object to another process.
|
||||||
|
Doing so and calling `cowboy_req` functions from it leads to
|
||||||
|
undefined behavior.
|
||||||
|
|
||||||
Types
|
Types
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue