From 48530f74eb54c8aa55014bbac9a99352d94a2a7a Mon Sep 17 00:00:00 2001 From: Nils Grunwald Date: Wed, 13 Oct 2010 01:11:37 +0200 Subject: added enabled_if --- spore_implementation.pod | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'spore_implementation.pod') diff --git a/spore_implementation.pod b/spore_implementation.pod index 93b7fab..acd9f6d 100644 --- a/spore_implementation.pod +++ b/spore_implementation.pod @@ -69,7 +69,7 @@ optionaly directly from the file itself). A I B also provide a method to enable or disable spore middlewares at runtime. The order in which the -middlewares are enambled is the order in which the request will go +middlewares are enabled is the order in which the request will go through each middleware, and the inverse order in which the response will go through each optional middleware postprocessing callback. @@ -80,6 +80,7 @@ will go through each optional middleware postprocessing callback. =head2 Middleware Each middleware B accept arbitrary initialization parameters. It +B provide a way to only conditionaly use a middleware (eg. B). It B also provide a function to which the request environment or an object containing it will be passed. The function can have 3 types of return values : @@ -176,8 +177,9 @@ place by the middlewares. C: A list of key/value pairs. These will be interpolated in the url with the placeholders when the request is made. The rest of -them will be used in the C part of the uri. B>MAY> be -empty but B always be present. +them will be used in the C part of the uri and the +payload key will define the actual content. B>MAY> be empty but +B always be present. =item * -- cgit v1.2.3