0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Explain that passing Req around leads to undefined behavior

This commit is contained in:
Loïc Hoguin 2014-07-01 13:21:24 +02:00
parent 15da836d2a
commit 993606ede8

View file

@ -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
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
-----