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

Clarify {true, URL} return for AcceptResource callback

This commit is contained in:
Loïc Hoguin 2014-07-10 14:27:11 +02:00
parent fd423eb170
commit 20f598f373

View file

@ -190,10 +190,10 @@ This function should create or update the resource with the
information contained in the request body. This information information contained in the request body. This information
may be full or partial depending on the request method. may be full or partial depending on the request method.
If the request body was processed successfully, `true` or If the request body was processed successfully, `true` must
`{true, URL}` may be returned. If an URL is provided, the be returned. If the request method is POST, `{true, URL}` may
response will redirect the client to the location of the be returned instead, and Cowboy will redirect the client to
resource. the location of the newly created resource.
If a response body must be sent, the appropriate media-type, charset If a response body must be sent, the appropriate media-type, charset
and language can be retrieved using the `cowboy_req:meta/{2,3}` and language can be retrieved using the `cowboy_req:meta/{2,3}`