From e25634cd9db82a4760087a2ba68d4c6a76353d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 27 Jul 2015 23:58:58 +0200 Subject: 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. --- doc/src/manual/cowboy_rest.ezdoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/src/manual') 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 -- cgit v1.2.3