diff options
Diffstat (limited to 'archives/extend/2012-October')
-rw-r--r-- | archives/extend/2012-October/000000.html | 77 | ||||
-rw-r--r-- | archives/extend/2012-October/000001.html | 93 | ||||
-rw-r--r-- | archives/extend/2012-October/000002.html | 66 | ||||
-rw-r--r-- | archives/extend/2012-October/000003.html | 74 | ||||
-rw-r--r-- | archives/extend/2012-October/000004.html | 68 | ||||
-rw-r--r-- | archives/extend/2012-October/000005.html | 82 | ||||
-rw-r--r-- | archives/extend/2012-October/000006.html | 93 | ||||
-rw-r--r-- | archives/extend/2012-October/author.html | 82 | ||||
-rw-r--r-- | archives/extend/2012-October/date.html | 82 | ||||
-rw-r--r-- | archives/extend/2012-October/index.html | 97 | ||||
-rw-r--r-- | archives/extend/2012-October/subject.html | 82 | ||||
-rw-r--r-- | archives/extend/2012-October/thread.html | 97 |
12 files changed, 993 insertions, 0 deletions
diff --git a/archives/extend/2012-October/000000.html b/archives/extend/2012-October/000000.html new file mode 100644 index 00000000..35b502a0 --- /dev/null +++ b/archives/extend/2012-October/000000.html @@ -0,0 +1,77 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] Welcome! + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Welcome%21&In-Reply-To=%3C507E8593.8020404%40ninenines.eu%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + + <LINK REL="Next" HREF="000001.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] Welcome!</H1> + <B>Loïc Hoguin</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Welcome%21&In-Reply-To=%3C507E8593.8020404%40ninenines.eu%3E" + TITLE="[99s-extend] Welcome!">essen at ninenines.eu + </A><BR> + <I>Wed Oct 17 12:16:51 CEST 2012</I> + <P><UL> + + <LI>Next message: <A HREF="000001.html">[99s-extend] Welcome! +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#0">[ date ]</a> + <a href="thread.html#0">[ thread ]</a> + <a href="subject.html#0">[ subject ]</a> + <a href="author.html#0">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Hello everyone and welcome to the only mailing list dedicated to the +Nine Nines projects including Cowboy, Ranch, Bullet, Sheriff, Farwest +and more! + +Feel free to ask any question or request support from the community +directly on this mailing list and we will try to help you as quickly as +possible. + +Mailing lists for French and Japanese speakers will be created at a +later date. + +Thanks for subscribing! + +-- +Loïc Hoguin +Erlang Cowboy +Nine Nines +<A HREF="http://ninenines.eu">http://ninenines.eu</A> + +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + + <LI>Next message: <A HREF="000001.html">[99s-extend] Welcome! +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#0">[ date ]</a> + <a href="thread.html#0">[ thread ]</a> + <a href="subject.html#0">[ subject ]</a> + <a href="author.html#0">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> diff --git a/archives/extend/2012-October/000001.html b/archives/extend/2012-October/000001.html new file mode 100644 index 00000000..edbfcdad --- /dev/null +++ b/archives/extend/2012-October/000001.html @@ -0,0 +1,93 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] Welcome! + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Welcome%21&In-Reply-To=%3C4bcaad4d34881502b48a91fcb1384de4.squirrel%40oinksoft.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000000.html"> + <LINK REL="Next" HREF="000002.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] Welcome!</H1> + <B>Thomas Allen</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Welcome%21&In-Reply-To=%3C4bcaad4d34881502b48a91fcb1384de4.squirrel%40oinksoft.com%3E" + TITLE="[99s-extend] Welcome!">thomas at oinksoft.com + </A><BR> + <I>Wed Oct 17 13:51:55 CEST 2012</I> + <P><UL> + <LI>Previous message: <A HREF="000000.html">[99s-extend] Welcome! +</A></li> + <LI>Next message: <A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#1">[ date ]</a> + <a href="thread.html#1">[ thread ]</a> + <a href="subject.html#1">[ subject ]</a> + <a href="author.html#1">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Very exciting! Now there's no excuse for asking about Cowboy on the +`erlang-questions' list ;^) + +Thomas Allen + + +On Wed, October 17, 2012 6:16 am, Loïc Hoguin wrote: +><i> Hello everyone and welcome to the only mailing list dedicated to the +</I>><i> Nine Nines projects including Cowboy, Ranch, Bullet, Sheriff, Farwest +</I>><i> and more! +</I>><i> +</I>><i> Feel free to ask any question or request support from the community +</I>><i> directly on this mailing list and we will try to help you as quickly as +</I>><i> possible. +</I>><i> +</I>><i> Mailing lists for French and Japanese speakers will be created at a +</I>><i> later date. +</I>><i> +</I>><i> Thanks for subscribing! +</I>><i> +</I>><i> -- +</I>><i> Loïc Hoguin +</I>><i> Erlang Cowboy +</I>><i> Nine Nines +</I>><i> <A HREF="http://ninenines.eu">http://ninenines.eu</A> +</I>><i> _______________________________________________ +</I>><i> Extend mailing list +</I>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A> +</I>><i> <A HREF="http://lists.ninenines.eu:81/listinfo/extend">http://lists.ninenines.eu:81/listinfo/extend</A> +</I>><i> +</I> + + +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000000.html">[99s-extend] Welcome! +</A></li> + <LI>Next message: <A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#1">[ date ]</a> + <a href="thread.html#1">[ thread ]</a> + <a href="subject.html#1">[ subject ]</a> + <a href="author.html#1">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> diff --git a/archives/extend/2012-October/000002.html b/archives/extend/2012-October/000002.html new file mode 100644 index 00000000..d40005ce --- /dev/null +++ b/archives/extend/2012-October/000002.html @@ -0,0 +1,66 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] Congrats for the new mailinglist + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Congrats%20for%20the%20new%20mailinglist&In-Reply-To=%3C8C60E8B8-8A20-4553-BCC7-9735C46446B5%40gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000001.html"> + <LINK REL="Next" HREF="000003.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] Congrats for the new mailinglist</H1> + <B>Zabrane Mickael</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Congrats%20for%20the%20new%20mailinglist&In-Reply-To=%3C8C60E8B8-8A20-4553-BCC7-9735C46446B5%40gmail.com%3E" + TITLE="[99s-extend] Congrats for the new mailinglist">zabrane3 at gmail.com + </A><BR> + <I>Tue Oct 30 21:34:35 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="000001.html">[99s-extend] Welcome! +</A></li> + <LI>Next message: <A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#2">[ date ]</a> + <a href="thread.html#2">[ thread ]</a> + <a href="subject.html#2">[ subject ]</a> + <a href="author.html#2">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Bravo Loïc, + +Regards, +Zabrane + + +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000001.html">[99s-extend] Welcome! +</A></li> + <LI>Next message: <A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#2">[ date ]</a> + <a href="thread.html#2">[ thread ]</a> + <a href="subject.html#2">[ subject ]</a> + <a href="author.html#2">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> diff --git a/archives/extend/2012-October/000003.html b/archives/extend/2012-October/000003.html new file mode 100644 index 00000000..8cd8e899 --- /dev/null +++ b/archives/extend/2012-October/000003.html @@ -0,0 +1,74 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] Congrats for the new mailinglist + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Congrats%20for%20the%20new%20mailinglist&In-Reply-To=%3C50903A73.1060809%40ninenines.eu%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000002.html"> + <LINK REL="Next" HREF="000004.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] Congrats for the new mailinglist</H1> + <B>Loïc Hoguin</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Congrats%20for%20the%20new%20mailinglist&In-Reply-To=%3C50903A73.1060809%40ninenines.eu%3E" + TITLE="[99s-extend] Congrats for the new mailinglist">essen at ninenines.eu + </A><BR> + <I>Tue Oct 30 21:37:07 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI>Next message: <A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#3">[ date ]</a> + <a href="thread.html#3">[ thread ]</a> + <a href="subject.html#3">[ subject ]</a> + <a href="author.html#3">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On 10/30/2012 09:34 PM, Zabrane Mickael wrote: +><i> Bravo Loïc, +</I> +Thanks. + +I feel obligated to tell you I started calling you the "congrats guy" +since you congratulate every progress everywhere. :) + +-- +Loïc Hoguin +Erlang Cowboy +Nine Nines +<A HREF="http://ninenines.eu">http://ninenines.eu</A> + +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI>Next message: <A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#3">[ date ]</a> + <a href="thread.html#3">[ thread ]</a> + <a href="subject.html#3">[ subject ]</a> + <a href="author.html#3">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> diff --git a/archives/extend/2012-October/000004.html b/archives/extend/2012-October/000004.html new file mode 100644 index 00000000..c2b86626 --- /dev/null +++ b/archives/extend/2012-October/000004.html @@ -0,0 +1,68 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] Congrats for the new mailinglist + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Congrats%20for%20the%20new%20mailinglist&In-Reply-To=%3CA269C2B0-AE51-4447-AB22-E11CAED62527%40gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000003.html"> + <LINK REL="Next" HREF="000005.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] Congrats for the new mailinglist</H1> + <B>Zabrane Mickael</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Congrats%20for%20the%20new%20mailinglist&In-Reply-To=%3CA269C2B0-AE51-4447-AB22-E11CAED62527%40gmail.com%3E" + TITLE="[99s-extend] Congrats for the new mailinglist">zabrane3 at gmail.com + </A><BR> + <I>Tue Oct 30 21:40:27 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI>Next message: <A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#4">[ date ]</a> + <a href="thread.html#4">[ thread ]</a> + <a href="subject.html#4">[ subject ]</a> + <a href="author.html#4">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>><i> I feel obligated to tell you I started calling you the "congrats guy" since you congratulate every progress everywhere. :) +</I> +well, you're right ;-) + +Regards, +Zabrane + + +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI>Next message: <A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#4">[ date ]</a> + <a href="thread.html#4">[ thread ]</a> + <a href="subject.html#4">[ subject ]</a> + <a href="author.html#4">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> diff --git a/archives/extend/2012-October/000005.html b/archives/extend/2012-October/000005.html new file mode 100644 index 00000000..4909d0f2 --- /dev/null +++ b/archives/extend/2012-October/000005.html @@ -0,0 +1,82 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] cowboy_http_handler type spec + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy_http_handler%20type%20spec&In-Reply-To=%3CCAJ0zLROkOMkqD7Mcv-JtSb7tyTWsra4NW-O-KGzBsLmOE3%3Dgig%40mail.gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000004.html"> + <LINK REL="Next" HREF="000006.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] cowboy_http_handler type spec</H1> + <B>rambocoder</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy_http_handler%20type%20spec&In-Reply-To=%3CCAJ0zLROkOMkqD7Mcv-JtSb7tyTWsra4NW-O-KGzBsLmOE3%3Dgig%40mail.gmail.com%3E" + TITLE="[99s-extend] cowboy_http_handler type spec">erlang at rambocoder.com + </A><BR> + <I>Wed Oct 31 00:38:40 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI>Next message: <A HREF="000006.html">[99s-extend] cowboy_http_handler type spec +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#5">[ date ]</a> + <a href="thread.html#5">[ thread ]</a> + <a href="subject.html#5">[ subject ]</a> + <a href="author.html#5">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>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? +<A HREF="https://github.com/extend/cowboy/blob/master/src/cowboy_http_handler.erl#L39">https://github.com/extend/cowboy/blob/master/src/cowboy_http_handler.erl#L39</A> + +Because looking at the handler code, +<A HREF="https://github.com/extend/cowboy/blob/master/src/cowboy_protocol.erl#L473">https://github.com/extend/cowboy/blob/master/src/cowboy_protocol.erl#L473</A> 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: <<A HREF="http://lists.ninenines.eu/archives/extend/attachments/20121030/3de26c28/attachment.html">http://lists.ninenines.eu/archives/extend/attachments/20121030/3de26c28/attachment.html</A>> +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A></li> + <LI>Next message: <A HREF="000006.html">[99s-extend] cowboy_http_handler type spec +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#5">[ date ]</a> + <a href="thread.html#5">[ thread ]</a> + <a href="subject.html#5">[ subject ]</a> + <a href="author.html#5">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> diff --git a/archives/extend/2012-October/000006.html b/archives/extend/2012-October/000006.html new file mode 100644 index 00000000..2e8610ec --- /dev/null +++ b/archives/extend/2012-October/000006.html @@ -0,0 +1,93 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] cowboy_http_handler type spec + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy_http_handler%20type%20spec&In-Reply-To=%3C5090660A.2000301%40ninenines.eu%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000005.html"> + + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] cowboy_http_handler type spec</H1> + <B>Loïc Hoguin</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy_http_handler%20type%20spec&In-Reply-To=%3C5090660A.2000301%40ninenines.eu%3E" + TITLE="[99s-extend] cowboy_http_handler type spec">essen at ninenines.eu + </A><BR> + <I>Wed Oct 31 00:43:06 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A></li> + + <LI> <B>Messages sorted by:</B> + <a href="date.html#6">[ date ]</a> + <a href="thread.html#6">[ thread ]</a> + <a href="subject.html#6">[ subject ]</a> + <a href="author.html#6">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On 10/31/2012 12:38 AM, rambocoder wrote: +><i> Hi everyone, newb questions here: +</I>><i> +</I>><i> Is the reason why the type specification for the init callback lists +</I>><i> various "{loop,..." tuples, because a single module can implement +</I>><i> cowboy_loop_handler and cowboy_http_handler? +</I>><i> And this way, a dializier warning will not be triggered? +</I>><i> <A HREF="https://github.com/extend/cowboy/blob/master/src/cowboy_http_handler.erl#L39">https://github.com/extend/cowboy/blob/master/src/cowboy_http_handler.erl#L39</A> +</I> +Yes that's exactly why. Not the best solution but good enough. + +><i> Because looking at the handler code, +</I>><i> <A HREF="https://github.com/extend/cowboy/blob/master/src/cowboy_protocol.erl#L473">https://github.com/extend/cowboy/blob/master/src/cowboy_protocol.erl#L473</A> if +</I>><i> the {loop, * is returned from init, then the handle(Req,State) will not +</I>><i> be processed. +</I> +You have this one if you just want loops: + +<A HREF="https://github.com/extend/cowboy/blob/master/src/cowboy_loop_handler.erl">https://github.com/extend/cowboy/blob/master/src/cowboy_loop_handler.erl</A> + +Having an identical init in both allows us to use the 2 handlers without +Dialyzer complaining. + +><i> Also, is it safe to say that Handler:init is like "before" in lot's of +</I>><i> web frameworks. I can place validation\authentication logic there. +</I> +Definitely, prepare what you need in init, do what you need to do in +handle and clean up in terminate if needed. + +-- +Loïc Hoguin +Erlang Cowboy +Nine Nines +<A HREF="http://ninenines.eu">http://ninenines.eu</A> + +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A></li> + + <LI> <B>Messages sorted by:</B> + <a href="date.html#6">[ date ]</a> + <a href="thread.html#6">[ thread ]</a> + <a href="subject.html#6">[ subject ]</a> + <a href="author.html#6">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> diff --git a/archives/extend/2012-October/author.html b/archives/extend/2012-October/author.html new file mode 100644 index 00000000..0a2894ea --- /dev/null +++ b/archives/extend/2012-October/author.html @@ -0,0 +1,82 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <title>The Extend October 2012 Archive by author</title> + <META NAME="robots" CONTENT="noindex,follow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <a name="start"></A> + <h1>October 2012 Archives by author</h1> + <ul> + <li> <b>Messages sorted by:</b> + <a href="thread.html#start">[ thread ]</a> + <a href="subject.html#start">[ subject ]</a> + + <a href="date.html#start">[ date ]</a> + + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p><b>Starting:</b> <i>Wed Oct 17 12:16:51 CEST 2012</i><br> + <b>Ending:</b> <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Messages:</b> 7<p> + <ul> + +<LI><A HREF="000001.html">[99s-extend] Welcome! +</A><A NAME="1"> </A> +<I>Thomas Allen +</I> + +<LI><A HREF="000000.html">[99s-extend] Welcome! +</A><A NAME="0"> </A> +<I>Loïc Hoguin +</I> + +<LI><A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="3"> </A> +<I>Loïc Hoguin +</I> + +<LI><A HREF="000006.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="6"> </A> +<I>Loïc Hoguin +</I> + +<LI><A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="2"> </A> +<I>Zabrane Mickael +</I> + +<LI><A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="4"> </A> +<I>Zabrane Mickael +</I> + +<LI><A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="5"> </A> +<I>rambocoder +</I> + + </ul> + <p> + <a name="end"><b>Last message date:</b></a> + <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Archived on:</b> <i>Wed May 28 18:41:42 CEST 2014</i> + <p> + <ul> + <li> <b>Messages sorted by:</b> + <a href="thread.html#start">[ thread ]</a> + <a href="subject.html#start">[ subject ]</a> + + <a href="date.html#start">[ date ]</a> + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p> + <hr> + <i>This archive was generated by + Pipermail 0.09 (Mailman edition).</i> + </BODY> +</HTML> + diff --git a/archives/extend/2012-October/date.html b/archives/extend/2012-October/date.html new file mode 100644 index 00000000..70ea0f0d --- /dev/null +++ b/archives/extend/2012-October/date.html @@ -0,0 +1,82 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <title>The Extend October 2012 Archive by date</title> + <META NAME="robots" CONTENT="noindex,follow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <a name="start"></A> + <h1>October 2012 Archives by date</h1> + <ul> + <li> <b>Messages sorted by:</b> + <a href="thread.html#start">[ thread ]</a> + <a href="subject.html#start">[ subject ]</a> + <a href="author.html#start">[ author ]</a> + + + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p><b>Starting:</b> <i>Wed Oct 17 12:16:51 CEST 2012</i><br> + <b>Ending:</b> <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Messages:</b> 7<p> + <ul> + +<LI><A HREF="000000.html">[99s-extend] Welcome! +</A><A NAME="0"> </A> +<I>Loïc Hoguin +</I> + +<LI><A HREF="000001.html">[99s-extend] Welcome! +</A><A NAME="1"> </A> +<I>Thomas Allen +</I> + +<LI><A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="2"> </A> +<I>Zabrane Mickael +</I> + +<LI><A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="3"> </A> +<I>Loïc Hoguin +</I> + +<LI><A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="4"> </A> +<I>Zabrane Mickael +</I> + +<LI><A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="5"> </A> +<I>rambocoder +</I> + +<LI><A HREF="000006.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="6"> </A> +<I>Loïc Hoguin +</I> + + </ul> + <p> + <a name="end"><b>Last message date:</b></a> + <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Archived on:</b> <i>Wed May 28 18:41:42 CEST 2014</i> + <p> + <ul> + <li> <b>Messages sorted by:</b> + <a href="thread.html#start">[ thread ]</a> + <a href="subject.html#start">[ subject ]</a> + <a href="author.html#start">[ author ]</a> + + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p> + <hr> + <i>This archive was generated by + Pipermail 0.09 (Mailman edition).</i> + </BODY> +</HTML> + diff --git a/archives/extend/2012-October/index.html b/archives/extend/2012-October/index.html new file mode 100644 index 00000000..e89fa1be --- /dev/null +++ b/archives/extend/2012-October/index.html @@ -0,0 +1,97 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <title>The Extend October 2012 Archive by thread</title> + <META NAME="robots" CONTENT="noindex,follow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <a name="start"></A> + <h1>October 2012 Archives by thread</h1> + <ul> + <li> <b>Messages sorted by:</b> + + <a href="subject.html#start">[ subject ]</a> + <a href="author.html#start">[ author ]</a> + <a href="date.html#start">[ date ]</a> + + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p><b>Starting:</b> <i>Wed Oct 17 12:16:51 CEST 2012</i><br> + <b>Ending:</b> <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Messages:</b> 7<p> + <ul> + +<!--0 01350469011.0- --> +<LI><A HREF="000000.html">[99s-extend] Welcome! +</A><A NAME="0"> </A> +<I>Loïc Hoguin +</I> + +<UL> +<!--1 01350469011.0-01350474715.1- --> +<LI><A HREF="000001.html">[99s-extend] Welcome! +</A><A NAME="1"> </A> +<I>Thomas Allen +</I> + +</UL> +<!--0 01351629275.2- --> +<LI><A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="2"> </A> +<I>Zabrane Mickael +</I> + +<UL> +<!--1 01351629275.2-01351629427.3- --> +<LI><A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="3"> </A> +<I>Loïc Hoguin +</I> + +<UL> +<!--2 01351629275.2-01351629427.3-01351629627.4- --> +<LI><A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="4"> </A> +<I>Zabrane Mickael +</I> + +</UL> +</UL> +<!--0 01351640320.5- --> +<LI><A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="5"> </A> +<I>rambocoder +</I> + +<UL> +<!--1 01351640320.5-01351640586.6- --> +<LI><A HREF="000006.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="6"> </A> +<I>Loïc Hoguin +</I> + +</UL> + </ul> + <p> + <a name="end"><b>Last message date:</b></a> + <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Archived on:</b> <i>Wed May 28 18:41:42 CEST 2014</i> + <p> + <ul> + <li> <b>Messages sorted by:</b> + + <a href="subject.html#start">[ subject ]</a> + <a href="author.html#start">[ author ]</a> + <a href="date.html#start">[ date ]</a> + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p> + <hr> + <i>This archive was generated by + Pipermail 0.09 (Mailman edition).</i> + </BODY> +</HTML> + diff --git a/archives/extend/2012-October/subject.html b/archives/extend/2012-October/subject.html new file mode 100644 index 00000000..1eecfaed --- /dev/null +++ b/archives/extend/2012-October/subject.html @@ -0,0 +1,82 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <title>The Extend October 2012 Archive by subject</title> + <META NAME="robots" CONTENT="noindex,follow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <a name="start"></A> + <h1>October 2012 Archives by subject</h1> + <ul> + <li> <b>Messages sorted by:</b> + <a href="thread.html#start">[ thread ]</a> + + <a href="author.html#start">[ author ]</a> + <a href="date.html#start">[ date ]</a> + + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p><b>Starting:</b> <i>Wed Oct 17 12:16:51 CEST 2012</i><br> + <b>Ending:</b> <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Messages:</b> 7<p> + <ul> + +<LI><A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="2"> </A> +<I>Zabrane Mickael +</I> + +<LI><A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="3"> </A> +<I>Loïc Hoguin +</I> + +<LI><A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="4"> </A> +<I>Zabrane Mickael +</I> + +<LI><A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="5"> </A> +<I>rambocoder +</I> + +<LI><A HREF="000006.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="6"> </A> +<I>Loïc Hoguin +</I> + +<LI><A HREF="000000.html">[99s-extend] Welcome! +</A><A NAME="0"> </A> +<I>Loïc Hoguin +</I> + +<LI><A HREF="000001.html">[99s-extend] Welcome! +</A><A NAME="1"> </A> +<I>Thomas Allen +</I> + + </ul> + <p> + <a name="end"><b>Last message date:</b></a> + <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Archived on:</b> <i>Wed May 28 18:41:42 CEST 2014</i> + <p> + <ul> + <li> <b>Messages sorted by:</b> + <a href="thread.html#start">[ thread ]</a> + + <a href="author.html#start">[ author ]</a> + <a href="date.html#start">[ date ]</a> + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p> + <hr> + <i>This archive was generated by + Pipermail 0.09 (Mailman edition).</i> + </BODY> +</HTML> + diff --git a/archives/extend/2012-October/thread.html b/archives/extend/2012-October/thread.html new file mode 100644 index 00000000..e89fa1be --- /dev/null +++ b/archives/extend/2012-October/thread.html @@ -0,0 +1,97 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <title>The Extend October 2012 Archive by thread</title> + <META NAME="robots" CONTENT="noindex,follow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <a name="start"></A> + <h1>October 2012 Archives by thread</h1> + <ul> + <li> <b>Messages sorted by:</b> + + <a href="subject.html#start">[ subject ]</a> + <a href="author.html#start">[ author ]</a> + <a href="date.html#start">[ date ]</a> + + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p><b>Starting:</b> <i>Wed Oct 17 12:16:51 CEST 2012</i><br> + <b>Ending:</b> <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Messages:</b> 7<p> + <ul> + +<!--0 01350469011.0- --> +<LI><A HREF="000000.html">[99s-extend] Welcome! +</A><A NAME="0"> </A> +<I>Loïc Hoguin +</I> + +<UL> +<!--1 01350469011.0-01350474715.1- --> +<LI><A HREF="000001.html">[99s-extend] Welcome! +</A><A NAME="1"> </A> +<I>Thomas Allen +</I> + +</UL> +<!--0 01351629275.2- --> +<LI><A HREF="000002.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="2"> </A> +<I>Zabrane Mickael +</I> + +<UL> +<!--1 01351629275.2-01351629427.3- --> +<LI><A HREF="000003.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="3"> </A> +<I>Loïc Hoguin +</I> + +<UL> +<!--2 01351629275.2-01351629427.3-01351629627.4- --> +<LI><A HREF="000004.html">[99s-extend] Congrats for the new mailinglist +</A><A NAME="4"> </A> +<I>Zabrane Mickael +</I> + +</UL> +</UL> +<!--0 01351640320.5- --> +<LI><A HREF="000005.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="5"> </A> +<I>rambocoder +</I> + +<UL> +<!--1 01351640320.5-01351640586.6- --> +<LI><A HREF="000006.html">[99s-extend] cowboy_http_handler type spec +</A><A NAME="6"> </A> +<I>Loïc Hoguin +</I> + +</UL> + </ul> + <p> + <a name="end"><b>Last message date:</b></a> + <i>Wed Oct 31 00:43:06 CET 2012</i><br> + <b>Archived on:</b> <i>Wed May 28 18:41:42 CEST 2014</i> + <p> + <ul> + <li> <b>Messages sorted by:</b> + + <a href="subject.html#start">[ subject ]</a> + <a href="author.html#start">[ author ]</a> + <a href="date.html#start">[ date ]</a> + <li><b><a href="https://lists.ninenines.eu/listinfo/extend">More info on this list... + </a></b></li> + </ul> + <p> + <hr> + <i>This archive was generated by + Pipermail 0.09 (Mailman edition).</i> + </BODY> +</HTML> + |