From c807880f7ac73f813b2660ea81a00f7712a4e793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 29 Aug 2016 12:39:49 +0200 Subject: Add old mailing list archives --- .../archives/extend/2012-October/000005.html | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 _build/static/archives/extend/2012-October/000005.html (limited to '_build/static/archives/extend/2012-October/000005.html') diff --git a/_build/static/archives/extend/2012-October/000005.html b/_build/static/archives/extend/2012-October/000005.html new file mode 100644 index 00000000..4909d0f2 --- /dev/null +++ b/_build/static/archives/extend/2012-October/000005.html @@ -0,0 +1,82 @@ + + + + [99s-extend] cowboy_http_handler type spec + + + + + + + + + + +

[99s-extend] cowboy_http_handler type spec

+ rambocoder + erlang at rambocoder.com +
+ Wed Oct 31 00:38:40 CET 2012 +

+
+ +
Hi everyone, newb questions here:
+
+Is the reason why the type specification for the init callback lists
+various "{loop,..." tuples, because a single module can implement
+cowboy_loop_handler and cowboy_http_handler?
+And this way, a dializier warning will not be triggered?
+https://github.com/extend/cowboy/blob/master/src/cowboy_http_handler.erl#L39
+
+Because looking at the handler code,
+https://github.com/extend/cowboy/blob/master/src/cowboy_protocol.erl#L473 if
+the {loop, * is returned from init, then the handle(Req, State) will not be
+processed.
+
+Also, is it safe to say that Handler:init is like "before" in lot's of web
+frameworks. I can place validation\authentication logic there.
+
+Sincerely,
+
+-rambocoder
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: <http://lists.ninenines.eu/archives/extend/attachments/20121030/3de26c28/attachment.html>
+
+ + +
+

+ +
+More information about the Extend +mailing list
+ -- cgit v1.2.3