aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/cowboy_rest.ezdoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-07-10 14:27:11 +0200
committerLoïc Hoguin <[email protected]>2014-07-10 14:27:11 +0200
commit20f598f3736cdaab8fd0e9de09f16d18d1dc97f8 (patch)
treefb9e4f1b3e62e1966b9511dddebefa2e96dedaaf /doc/src/manual/cowboy_rest.ezdoc
parentfd423eb1705ec8afb867554e02d0ef5a998f28c6 (diff)
downloadcowboy-20f598f3736cdaab8fd0e9de09f16d18d1dc97f8.tar.gz
cowboy-20f598f3736cdaab8fd0e9de09f16d18d1dc97f8.tar.bz2
cowboy-20f598f3736cdaab8fd0e9de09f16d18d1dc97f8.zip
Clarify {true, URL} return for AcceptResource callback
Diffstat (limited to 'doc/src/manual/cowboy_rest.ezdoc')
-rw-r--r--doc/src/manual/cowboy_rest.ezdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/manual/cowboy_rest.ezdoc b/doc/src/manual/cowboy_rest.ezdoc
index 4d13530..9fe5c77 100644
--- a/doc/src/manual/cowboy_rest.ezdoc
+++ b/doc/src/manual/cowboy_rest.ezdoc
@@ -190,10 +190,10 @@ This function should create or update the resource with the
information contained in the request body. This information
may be full or partial depending on the request method.
-If the request body was processed successfully, `true` or
-`{true, URL}` may be returned. If an URL is provided, the
-response will redirect the client to the location of the
-resource.
+If the request body was processed successfully, `true` must
+be returned. If the request method is POST, `{true, URL}` may
+be returned instead, and Cowboy will redirect the client to
+the location of the newly created resource.
If a response body must be sent, the appropriate media-type, charset
and language can be retrieved using the `cowboy_req:meta/{2,3}`