diff options
author | Loïc Hoguin <[email protected]> | 2013-04-20 15:52:31 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-04-20 15:52:31 +0200 |
commit | 711c21ac4f86f0f1a5e62bec965f7ba900612bb0 (patch) | |
tree | 97f20605f89ffca4f1125bc8938889f9a0c22870 /examples/ssl_hello_world/priv | |
parent | 109a1b822749a36595fd6cd55fbf5fb3b12d922a (diff) | |
download | cowboy-711c21ac4f86f0f1a5e62bec965f7ba900612bb0.tar.gz cowboy-711c21ac4f86f0f1a5e62bec965f7ba900612bb0.tar.bz2 cowboy-711c21ac4f86f0f1a5e62bec965f7ba900612bb0.zip |
Fix POST behavior in REST
The resource accept callback can trigger the following responses:
* returns true, new resource, location header set: 201
* returns true, otherwise: 200, 204 or 300 (depends on body)
* returns false: 422
* returns URL, new resource: 201
* returns URL, otherwise: 303
Diffstat (limited to 'examples/ssl_hello_world/priv')
0 files changed, 0 insertions, 0 deletions