diff options
Diffstat (limited to '_build/static/archives/extend/attachments/20140823/51e1d345/attachment-0001.html')
-rw-r--r-- | _build/static/archives/extend/attachments/20140823/51e1d345/attachment-0001.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/_build/static/archives/extend/attachments/20140823/51e1d345/attachment-0001.html b/_build/static/archives/extend/attachments/20140823/51e1d345/attachment-0001.html new file mode 100644 index 00000000..7882295b --- /dev/null +++ b/_build/static/archives/extend/attachments/20140823/51e1d345/attachment-0001.html @@ -0,0 +1,30 @@ +<tt> +<div dir="ltr">You should implement the resource_exists() callback; this will let the rest module pick a 200 vs 201. If the db name was incorrect, I think you are just supposed to return false from the put callback. I can't remember the http code for that case.<div><br> +<br></div><div>Regards,</div><div>Dan.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 23, 2014 at 6:58 PM, Stéphane Wirtel <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br><br> +<br><br> +1. I would like to use the cowboy_rest protocol with cowboy 1.0 but I have a small crash.<br><br> +<br><br> +Here is my code:<br><br> +<br><br> +<a href="https://www.friendpaste.com/7O3X4fG4u31gBg9MgW5xg4" target="_blank">https://www.friendpaste.com/<u></u>7O3X4fG4u31gBg9MgW5xg4</a><br><br> +<br><br> +Could you tell me if I correctly use cowboy_rest for the PUT verb? I have seen is_conflict/2, but I don't know how to use it.<br><br> +<br><br> +2. I would like to change the response code, but I get the error. Is it possible?<br><br> +<br><br> +Thank you.<br><br> +<br><br> +Regards,<br><br> +<br><br> +Stephane<br><br> +<br><br> +--<br><br> +Stéphane Wirtel - <a href="http://wirtel.be" target="_blank">http://wirtel.be</a> - @matrixise<br><br> +______________________________<u></u>_________________<br><br> +Extend mailing list<br><br> +<a href="mailto:[email protected]" target="_blank">[email protected]</a><br><br> +<a href="https://lists.ninenines.eu/listinfo/extend" target="_blank">https://lists.ninenines.eu/<u></u>listinfo/extend</a><br><br> +</blockquote></div><br></div><br> + +</tt> |