aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_client.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-04-20 15:52:31 +0200
committerLoïc Hoguin <[email protected]>2013-04-20 15:52:31 +0200
commit711c21ac4f86f0f1a5e62bec965f7ba900612bb0 (patch)
tree97f20605f89ffca4f1125bc8938889f9a0c22870 /src/cowboy_client.erl
parent109a1b822749a36595fd6cd55fbf5fb3b12d922a (diff)
downloadcowboy-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 'src/cowboy_client.erl')
0 files changed, 0 insertions, 0 deletions