From 138cccb4f9bcfa278af12abc559a551144ab2170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 6 Oct 2011 15:54:37 +0200 Subject: Allow HTTP handlers to skip the handle/2 step in init/3 You can now return {shutdown, Req, State} from Handler:init/3 to skip the handle/2 step. Also allow init/3 function to send responses. --- include/http.hrl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/http.hrl b/include/http.hrl index 3178381..7691966 100644 --- a/include/http.hrl +++ b/include/http.hrl @@ -66,5 +66,5 @@ buffer = <<>> :: binary(), %% Response. - resp_state = locked :: locked | waiting | chunks | done + resp_state = waiting :: locked | waiting | chunks | done }). -- cgit v1.2.3