summaryrefslogtreecommitdiffstats
path: root/archives/extend/2014-May/000389.html
diff options
context:
space:
mode:
Diffstat (limited to 'archives/extend/2014-May/000389.html')
-rw-r--r--archives/extend/2014-May/000389.html80
1 files changed, 80 insertions, 0 deletions
diff --git a/archives/extend/2014-May/000389.html b/archives/extend/2014-May/000389.html
new file mode 100644
index 00000000..2f1f44c7
--- /dev/null
+++ b/archives/extend/2014-May/000389.html
@@ -0,0 +1,80 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [99s-extend] REST responses
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20REST%20responses&In-Reply-To=%3C537BCE95.1090100%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="000388.html">
+ <LINK REL="Next" HREF="000385.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[99s-extend] REST responses</H1>
+ <B>Lo&#239;c Hoguin</B>
+ <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20REST%20responses&In-Reply-To=%3C537BCE95.1090100%40ninenines.eu%3E"
+ TITLE="[99s-extend] REST responses">essen at ninenines.eu
+ </A><BR>
+ <I>Tue May 20 23:52:21 CEST 2014</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000388.html">[99s-extend] REST responses
+</A></li>
+ <LI>Next message: <A HREF="000385.html">[99s-extend] 202 for POST or PUT
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#389">[ date ]</a>
+ <a href="thread.html#389">[ thread ]</a>
+ <a href="subject.html#389">[ subject ]</a>
+ <a href="author.html#389">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>&gt;<i> State allows me to, well, keep state, for a request &quot;travelling&quot; through
+</I>&gt;<i> functions, right, and I can change it whenever I want just before
+</I>&gt;<i> returning from a function that is executed prior to another one (the
+</I>&gt;<i> only function for which this doesn't seem to make since is the last one
+</I>&gt;<i> cowboy calls before actually replying to the client)? At the same time,
+</I>&gt;<i> so does the request meta, from what I understood from the manual. So
+</I>&gt;<i> what is the difference between one and the other and when would you
+</I>&gt;<i> recommend one or the other.
+</I>
+They have different purposes. Meta values are additional information
+about the request. You're not supposed to set them except in special
+circumstances, either because you have your own custom protocol like
+cowboy_rest, or because there's no other way to pass state forward.
+
+Don't think about it, always use State.
+
+--
+Lo&#239;c Hoguin
+<A HREF="http://ninenines.eu">http://ninenines.eu</A>
+
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000388.html">[99s-extend] REST responses
+</A></li>
+ <LI>Next message: <A HREF="000385.html">[99s-extend] 202 for POST or PUT
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#389">[ date ]</a>
+ <a href="thread.html#389">[ thread ]</a>
+ <a href="subject.html#389">[ subject ]</a>
+ <a href="author.html#389">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
+mailing list</a><br>
+</body></html>