aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-07-27 23:58:58 +0200
committerLoïc Hoguin <[email protected]>2015-07-27 23:58:58 +0200
commite25634cd9db82a4760087a2ba68d4c6a76353d66 (patch)
treee764d0d7d68bba61af85c698dafaddbff30f6ee8 /doc/src/manual
parentdd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3 (diff)
downloadcowboy-e25634cd9db82a4760087a2ba68d4c6a76353d66.tar.gz
cowboy-e25634cd9db82a4760087a2ba68d4c6a76353d66.tar.bz2
cowboy-e25634cd9db82a4760087a2ba68d4c6a76353d66.zip
Add optional callbacks
Mostly useful for REST, which has a ton. This is an initial commit, it still needs to be tested, but it's time to sleep.
Diffstat (limited to 'doc/src/manual')
-rw-r--r--doc/src/manual/cowboy_rest.ezdoc12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/src/manual/cowboy_rest.ezdoc b/doc/src/manual/cowboy_rest.ezdoc
index eef622a..35131c7 100644
--- a/doc/src/manual/cowboy_rest.ezdoc
+++ b/doc/src/manual/cowboy_rest.ezdoc
@@ -290,6 +290,10 @@ the same format as the etag header, including quotes.
* Value type: true | {false, AuthHeader}
* Default value: true
+Types:
+
+* AuthHead = iodata()
+
Return whether the user is authorized to perform the action.
This function should be used to perform any necessary
@@ -380,6 +384,10 @@ the request body, which is processed later.
* Value type: {true, URL} | false
* Default value: false
+Types:
+
+* URL = iodata()
+
Return whether the resource was permanently moved.
If it was, its new URL is also returned and sent in the
@@ -391,6 +399,10 @@ location header in the response.
* Value type: {true, URL} | false
* Default value: false
+Types:
+
+* URL = iodata()
+
Return whether the resource was temporarily moved.
If it was, its new URL is also returned and sent in the