diff options
author | Loïc Hoguin <[email protected]> | 2016-08-29 12:39:49 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-29 12:40:03 +0200 |
commit | c807880f7ac73f813b2660ea81a00f7712a4e793 (patch) | |
tree | ba1d09e9b177f230665a80513b33fbd532000ce4 /_build/static/archives/extend/attachments/20140824 | |
parent | b1df25a7d9cda697513650659b781b55b40898f8 (diff) | |
download | ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.gz ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.bz2 ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.zip |
Add old mailing list archives
Diffstat (limited to '_build/static/archives/extend/attachments/20140824')
4 files changed, 260 insertions, 0 deletions
diff --git a/_build/static/archives/extend/attachments/20140824/89d3a7f6/attachment-0001.html b/_build/static/archives/extend/attachments/20140824/89d3a7f6/attachment-0001.html new file mode 100644 index 00000000..c0ba22f6 --- /dev/null +++ b/_build/static/archives/extend/attachments/20140824/89d3a7f6/attachment-0001.html @@ -0,0 +1,65 @@ +<tt> +<div dir="ltr">I think you can always halt the processing and do the reply by yourself:<div><br></div>{ok, Req2} = cowboy_req:reply(412, Req),<br>{halt, Req2, State}.</div><div class="gmail_extra"><br><br><div class="gmail_quote"><br> +On Sun, Aug 24, 2014 at 12:22 PM, Stéphane Wirtel <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +resource_exists is used by POST<br><br> +is_conflict is used by PUT (from the code)<br><br> +but in the case where my database already exists, I need to return 412 and not 409.<br><br> +<br><br> +and I know I don't respect the default value returned by Cowboy_rest.<div class="HOEnZb"><div class="h5"><br><br> +<br><br> +On 24 Aug 2014, at 2:16, Daniel Goertzen wrote:<br><br> +<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +You should implement the resource_exists() callback; this will let the rest<br><br> +module pick a 200 vs 201. If the db name was incorrect, I think you are<br><br> +just supposed to return false from the put callback. I can't remember the<br><br> +http code for that case.<br><br> +<br><br> +Regards,<br><br> +Dan.<br><br> +<br><br> +<br><br> +On Sat, Aug 23, 2014 at 6:58 PM, Stéphane Wirtel <<a href="mailto:[email protected]" target="_blank">[email protected]</a>> wrote:<br><br> +<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +Hi all,<br><br> +<br><br> +1. I would like to use the cowboy_rest protocol with cowboy 1.0 but I have<br><br> +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<br><br> +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<br><br> +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> +<br><br> +</blockquote></blockquote><br> +<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> +</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Eduardo<br></div><br> +</div><br> + +</tt> diff --git a/_build/static/archives/extend/attachments/20140824/89d3a7f6/attachment.html b/_build/static/archives/extend/attachments/20140824/89d3a7f6/attachment.html new file mode 100644 index 00000000..c0ba22f6 --- /dev/null +++ b/_build/static/archives/extend/attachments/20140824/89d3a7f6/attachment.html @@ -0,0 +1,65 @@ +<tt> +<div dir="ltr">I think you can always halt the processing and do the reply by yourself:<div><br></div>{ok, Req2} = cowboy_req:reply(412, Req),<br>{halt, Req2, State}.</div><div class="gmail_extra"><br><br><div class="gmail_quote"><br> +On Sun, Aug 24, 2014 at 12:22 PM, Stéphane Wirtel <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +resource_exists is used by POST<br><br> +is_conflict is used by PUT (from the code)<br><br> +but in the case where my database already exists, I need to return 412 and not 409.<br><br> +<br><br> +and I know I don't respect the default value returned by Cowboy_rest.<div class="HOEnZb"><div class="h5"><br><br> +<br><br> +On 24 Aug 2014, at 2:16, Daniel Goertzen wrote:<br><br> +<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +You should implement the resource_exists() callback; this will let the rest<br><br> +module pick a 200 vs 201. If the db name was incorrect, I think you are<br><br> +just supposed to return false from the put callback. I can't remember the<br><br> +http code for that case.<br><br> +<br><br> +Regards,<br><br> +Dan.<br><br> +<br><br> +<br><br> +On Sat, Aug 23, 2014 at 6:58 PM, Stéphane Wirtel <<a href="mailto:[email protected]" target="_blank">[email protected]</a>> wrote:<br><br> +<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +Hi all,<br><br> +<br><br> +1. I would like to use the cowboy_rest protocol with cowboy 1.0 but I have<br><br> +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<br><br> +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<br><br> +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> +<br><br> +</blockquote></blockquote><br> +<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> +</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Eduardo<br></div><br> +</div><br> + +</tt> diff --git a/_build/static/archives/extend/attachments/20140824/f35e1e51/attachment-0001.html b/_build/static/archives/extend/attachments/20140824/f35e1e51/attachment-0001.html new file mode 100644 index 00000000..84c843c5 --- /dev/null +++ b/_build/static/archives/extend/attachments/20140824/f35e1e51/attachment-0001.html @@ -0,0 +1,65 @@ +<tt> +<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Ok I will try asap, thanks</div><div><br>On 24 août 2014, at 02:25 AM, Eduardo Gurgel <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">I think you can always halt the processing and do the reply by yourself:<div><br></div>{ok, Req2} = cowboy_req:reply(412, Req),<br>{halt, Req2, State}.</div><div class="gmail_extra"><br><br><div class="gmail_quote"><br> +On Sun, Aug 24, 2014 at 12:22 PM, Stéphane Wirtel <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +resource_exists is used by POST<br><br> +is_conflict is used by PUT (from the code)<br><br> +but in the case where my database already exists, I need to return 412 and not 409.<br><br> +<br><br> +and I know I don't respect the default value returned by Cowboy_rest.<div class="HOEnZb"><div class="h5"><br><br> +<br><br> +On 24 Aug 2014, at 2:16, Daniel Goertzen wrote:<br><br> +<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +You should implement the resource_exists() callback; this will let the rest<br><br> +module pick a 200 vs 201. If the db name was incorrect, I think you are<br><br> +just supposed to return false from the put callback. I can't remember the<br><br> +http code for that case.<br><br> +<br><br> +Regards,<br><br> +Dan.<br><br> +<br><br> +<br><br> +On Sat, Aug 23, 2014 at 6:58 PM, Stéphane Wirtel <<a href="mailto:[email protected]" target="_blank">[email protected]</a>> wrote:<br><br> +<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +Hi all,<br><br> +<br><br> +1. I would like to use the cowboy_rest protocol with cowboy 1.0 but I have<br><br> +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<br><br> +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<br><br> +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> +<br><br> +</blockquote></blockquote><br> +<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> +</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Eduardo<br></div><br> +</div><br> +</div></blockquote></body></html> +</tt> diff --git a/_build/static/archives/extend/attachments/20140824/f35e1e51/attachment.html b/_build/static/archives/extend/attachments/20140824/f35e1e51/attachment.html new file mode 100644 index 00000000..84c843c5 --- /dev/null +++ b/_build/static/archives/extend/attachments/20140824/f35e1e51/attachment.html @@ -0,0 +1,65 @@ +<tt> +<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Ok I will try asap, thanks</div><div><br>On 24 août 2014, at 02:25 AM, Eduardo Gurgel <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">I think you can always halt the processing and do the reply by yourself:<div><br></div>{ok, Req2} = cowboy_req:reply(412, Req),<br>{halt, Req2, State}.</div><div class="gmail_extra"><br><br><div class="gmail_quote"><br> +On Sun, Aug 24, 2014 at 12:22 PM, Stéphane Wirtel <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +resource_exists is used by POST<br><br> +is_conflict is used by PUT (from the code)<br><br> +but in the case where my database already exists, I need to return 412 and not 409.<br><br> +<br><br> +and I know I don't respect the default value returned by Cowboy_rest.<div class="HOEnZb"><div class="h5"><br><br> +<br><br> +On 24 Aug 2014, at 2:16, Daniel Goertzen wrote:<br><br> +<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +You should implement the resource_exists() callback; this will let the rest<br><br> +module pick a 200 vs 201. If the db name was incorrect, I think you are<br><br> +just supposed to return false from the put callback. I can't remember the<br><br> +http code for that case.<br><br> +<br><br> +Regards,<br><br> +Dan.<br><br> +<br><br> +<br><br> +On Sat, Aug 23, 2014 at 6:58 PM, Stéphane Wirtel <<a href="mailto:[email protected]" target="_blank">[email protected]</a>> wrote:<br><br> +<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +Hi all,<br><br> +<br><br> +1. I would like to use the cowboy_rest protocol with cowboy 1.0 but I have<br><br> +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<br><br> +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<br><br> +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> +<br><br> +</blockquote></blockquote><br> +<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> +</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Eduardo<br></div><br> +</div><br> +</div></blockquote></body></html> +</tt> |