0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Clarify modifying/adding to the Req object

This commit is contained in:
Loïc Hoguin 2020-02-08 15:08:32 +01:00
parent 8fc3da2fc3
commit 3ec0cd8b8d
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -48,10 +48,12 @@ Any other field is internal and should not be accessed.
They may change in future releases, including maintenance
releases, without notice.
Modifying the Req object, while allowed, is not recommended
unless strictly necessary. If adding new fields, make sure
to namespace the field names so that no conflict can occur
with future Cowboy updates or third party projects.
Modifying the Req object is allowed, but extra caution
must be used when modifying existing fields. You can
add as many new fields as necessary, however. Just make
sure to namespace the field names so that no conflict
can occur with future Cowboy updates or with third party
projects.
=== Introduction to the cowboy_req interface