summaryrefslogblamecommitdiffstats
path: root/_build/static/archives/extend/2013-March/000069.html
blob: 96114eccfbeea494ae33602bcf255a3d46cc30e9 (plain) (tree)




























































































                                                                                                                                                                                                                                                                                                                                                                                                           
<!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(&lt;&lt;&quot;user-agent&quot;&gt;&gt;, Req)




From: &#1050;&#1086;&#1079;&#1083;&#1086;&#1074; &#1042;&#1103;&#1095;&#1077;&#1089;&#1083;&#1072;&#1074; &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">kozlov-ter at yandex.ru</A>&lt;mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">kozlov-ter at yandex.ru</A>&gt;&gt;
Date: Sunday, March 17, 2013 9:22 AM
To: &quot;<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>&lt;mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>&gt;&quot; &lt;<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>&lt;mailto:<A HREF="https://lists.ninenines.eu/listinfo/extend">extend at lists.ninenines.eu</A>&gt;&gt;
Subject: [99s-extend] cowboy header

Hello tell me how I can get for example http header &quot;user-agent&quot;?
I do so:

handle(Req, State) -&gt;

{ok, FwdIP, Req5} = cowboy_req:header(&quot;user-agent, Req)

but in this place I get the error



--
Vjacheslav Kozlov
Engineer of AEMS
Ltd. &quot;EER-Novomichurinsk&quot;
--
<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: &lt;<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>&gt;
</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>