diff options
Diffstat (limited to '_build/static/archives/extend/2013-March/000069.html')
-rw-r--r-- | _build/static/archives/extend/2013-March/000069.html | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/_build/static/archives/extend/2013-March/000069.html b/_build/static/archives/extend/2013-March/000069.html new file mode 100644 index 00000000..96114ecc --- /dev/null +++ b/_build/static/archives/extend/2013-March/000069.html @@ -0,0 +1,93 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] cowboy header + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy%20header&In-Reply-To=%3CCD6B3C03.3A60%25christopher.phillips%40turner.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="000068.html"> + <LINK REL="Next" HREF="000070.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] cowboy header</H1> + <B>Phillips, Christopher</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy%20header&In-Reply-To=%3CCD6B3C03.3A60%25christopher.phillips%40turner.com%3E" + TITLE="[99s-extend] cowboy header">Christopher.Phillips at turner.com + </A><BR> + <I>Sun Mar 17 17:27:40 CET 2013</I> + <P><UL> + <LI>Previous message: <A HREF="000068.html">[99s-extend] cowboy header +</A></li> + <LI>Next message: <A HREF="000070.html">[99s-extend] Big body via REST +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#69">[ date ]</a> + <a href="thread.html#69">[ thread ]</a> + <a href="subject.html#69">[ subject ]</a> + <a href="author.html#69">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE> Cowboy aims to use binaries, not strings, and unless there's a change in the head branch I don't have, the returned tuple has only two values, the value and the request. So it should look like something like - + + {Value, Req2} = cowboy_req:header(<<"user-agent">>, Req) + + + + +From: Козлов Вячеслав <<A HREF="https://lists.ninenines.eu/listinfo/extend">kozlov-ter at yandex.ru</A><mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">kozlov-ter at yandex.ru</A>>> +Date: Sunday, March 17, 2013 9:22 AM +To: "<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A><mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>>" <<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A><mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>>> +Subject: [99s-extend] cowboy header + +Hello tell me how I can get for example http header "user-agent"? +I do so: + +handle(Req, State) -> + +{ok, FwdIP, Req5} = cowboy_req:header("user-agent, Req) + +but in this place I get the error + + + +-- +Vjacheslav Kozlov +Engineer of AEMS +Ltd. "EER-Novomichurinsk" +-- +<A HREF="http://www.ter-energo.ru">http://www.ter-energo.ru</A> ++79109095144 09:00-18:00 (GMT+04:00) +-------------- next part -------------- +An HTML attachment was scrubbed... +URL: <<A HREF="http://lists.ninenines.eu/archives/extend/attachments/20130317/2ee0bc92/attachment.html">http://lists.ninenines.eu/archives/extend/attachments/20130317/2ee0bc92/attachment.html</A>> +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000068.html">[99s-extend] cowboy header +</A></li> + <LI>Next message: <A HREF="000070.html">[99s-extend] Big body via REST +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#69">[ date ]</a> + <a href="thread.html#69">[ thread ]</a> + <a href="subject.html#69">[ subject ]</a> + <a href="author.html#69">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> |