blob: 01827233eff4f030ac8b01ca8b278a54100168f0 (
plain) (
tree)
|
|
<!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 "/my/path[...]" and then curl "/my/path/even/more/stuff". Is there a way to retrieve the "rest" 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: [<<"even">>, <<"more">>, <<"stuff">>].
* 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: <<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>>
</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>
|