summaryrefslogtreecommitdiffstats
path: root/archives/extend/2013-February/000051.html
diff options
context:
space:
mode:
Diffstat (limited to 'archives/extend/2013-February/000051.html')
-rw-r--r--archives/extend/2013-February/000051.html72
1 files changed, 72 insertions, 0 deletions
diff --git a/archives/extend/2013-February/000051.html b/archives/extend/2013-February/000051.html
new file mode 100644
index 00000000..01827233
--- /dev/null
+++ b/archives/extend/2013-February/000051.html
@@ -0,0 +1,72 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [99s-extend] Cowboy questions
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Cowboy%20questions&In-Reply-To=%3C64B371DF-D6AA-4105-954E-C22EBA61EDFC%40kivra.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="000050.html">
+ <LINK REL="Next" HREF="000052.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[99s-extend] Cowboy questions</H1>
+ <B>Bip Thelin</B>
+ <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Cowboy%20questions&In-Reply-To=%3C64B371DF-D6AA-4105-954E-C22EBA61EDFC%40kivra.com%3E"
+ TITLE="[99s-extend] Cowboy questions">bip at kivra.com
+ </A><BR>
+ <I>Sun Feb 10 20:12:27 CET 2013</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000050.html">[99s-extend] How to send multiple messages in response to one message from Cowboy
+</A></li>
+ <LI>Next message: <A HREF="000052.html">[99s-extend] [ANN] Cowboy 0.8.0
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#51">[ date ]</a>
+ <a href="thread.html#51">[ thread ]</a>
+ <a href="subject.html#51">[ subject ]</a>
+ <a href="author.html#51">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Hi,
+
+ I'm playing around with a middleware and request/responsehooks. A couple of questions that have surfaced:
+* Say I map a module to &quot;/my/path[...]&quot; and then curl &quot;/my/path/even/more/stuff&quot;. Is there a way to retrieve the &quot;rest&quot; of the matched path, i.e. like cowboy_req:path_info/1 but just the rest, not the total path. The result I want is: [&lt;&lt;&quot;even&quot;&gt;&gt;, &lt;&lt;&quot;more&quot;&gt;&gt;, &lt;&lt;&quot;stuff&quot;&gt;&gt;].
+* I've been trying to use a responsehook to ensure that a default content-type is set if none is specified. Been trying with cowboy_req:reply, coboy_req:set_resp_headers, etc. It doesn't seem to work that well. What's the preferred way?
+
+Regards,
+-Bip Thelin
+
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;<A HREF="http://lists.ninenines.eu/archives/extend/attachments/20130210/1b9560c2/attachment.html">http://lists.ninenines.eu/archives/extend/attachments/20130210/1b9560c2/attachment.html</A>&gt;
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000050.html">[99s-extend] How to send multiple messages in response to one message from Cowboy
+</A></li>
+ <LI>Next message: <A HREF="000052.html">[99s-extend] [ANN] Cowboy 0.8.0
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#51">[ date ]</a>
+ <a href="thread.html#51">[ thread ]</a>
+ <a href="subject.html#51">[ subject ]</a>
+ <a href="author.html#51">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
+mailing list</a><br>
+</body></html>