summaryrefslogblamecommitdiffstats
path: root/archives/extend/2014-August/000455.html
blob: 0e2c36531e2e13542626c07bf327f6418779741d (plain) (tree)













































































                                                                                                                                                                                                                                             
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [99s-extend] cowboy_rest : PUT and resource_exists vs is_conflict ?
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy_rest%20%3A%20PUT%20and%20resource_exists%20vs%20is_conflict%20%3F&In-Reply-To=%3C5F045BA1-B52D-43BD-8E61-061CD2B4DFC9%40wirtel.be%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="000454.html">
   <LINK REL="Next"  HREF="000456.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[99s-extend] cowboy_rest : PUT and resource_exists vs is_conflict ?</H1>
    <B>St&#233;phane Wirtel</B> 
    <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy_rest%20%3A%20PUT%20and%20resource_exists%20vs%20is_conflict%20%3F&In-Reply-To=%3C5F045BA1-B52D-43BD-8E61-061CD2B4DFC9%40wirtel.be%3E"
       TITLE="[99s-extend] cowboy_rest : PUT and resource_exists vs is_conflict ?">stephane at wirtel.be
       </A><BR>
    <I>Wed Aug 27 23:41:25 CEST 2014</I>
    <P><UL>
        <LI>Previous message: <A HREF="000454.html">[99s-extend] Which erlang.mk?
</A></li>
        <LI>Next message: <A HREF="000456.html">[99s-extend] cowboy_rest : PUT and resource_exists vs is_conflict ?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#455">[ date ]</a>
              <a href="thread.html#455">[ thread ]</a>
              <a href="subject.html#455">[ subject ]</a>
              <a href="author.html#455">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Hi all,

For the PUT method, the flow is 

resource_exists
if method == PUT then go to the is_conflict function.
In each function, we need to check if the resource already exists or not.

I think we check twice, is it normal?

Thank you,

Stephane

--
St&#233;phane Wirtel - <A HREF="http://wirtel.be">http://wirtel.be</A> - @matrixise
</PRE>



<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000454.html">[99s-extend] Which erlang.mk?
</A></li>
	<LI>Next message: <A HREF="000456.html">[99s-extend] cowboy_rest : PUT and resource_exists vs is_conflict ?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#455">[ date ]</a>
              <a href="thread.html#455">[ thread ]</a>
              <a href="subject.html#455">[ subject ]</a>
              <a href="author.html#455">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>