diff options
Diffstat (limited to '_build/static/archives/extend/attachments/20140605/46eee3c0/attachment.html')
-rw-r--r-- | _build/static/archives/extend/attachments/20140605/46eee3c0/attachment.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/_build/static/archives/extend/attachments/20140605/46eee3c0/attachment.html b/_build/static/archives/extend/attachments/20140605/46eee3c0/attachment.html new file mode 100644 index 00000000..54c2e082 --- /dev/null +++ b/_build/static/archives/extend/attachments/20140605/46eee3c0/attachment.html @@ -0,0 +1,47 @@ +<tt> +<div dir="ltr">Got it, thanks.<div><br></div><div>This <a href="http://ninenines.eu/docs/en/cowboy/HEAD/manual/cowboy_rest/">here</a> had the fine print that I hadn't read apparently: "This module cannot be described as a behaviour due to most of the callbacks it defines being optional. It has the same semantics as a behaviour otherwise.<span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:19.600000381469727px">"</span></div><br> +<div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:19.600000381469727px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:19.600000381469727px">- Paulo F. Oliveira</span></div><br> +</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 June 2014 22:46, Loïc Hoguin <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> +You shouldn't say -behavior(cowboy_http_handler) if you don't actually implement it.<br><br> +<br><br> +On 06/04/2014 11:37 PM, Paulo F. Oliveira wrote:<br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> +Hello.<br><br> +<br><br> +You wrote here<br><br> +<<a href="http://ninenines.eu/docs/en/cowboy/HEAD/manual/cowboy_rest/" target="_blank">http://ninenines.eu/docs/en/<u></u>cowboy/HEAD/manual/cowboy_<u></u>rest/</a>> that "The<div><div class="h5"><br><br> +only mandatory callback is init/3, needed to perform the protocol upgrade."<br><br> +<br><br> +In my code I have only this function for the protocol upgrade:<br><br> +<br><br> +init({_TransportName, _ProtocolName}, _Req, []) -><br><br> + {upgrade, protocol, cowboy_rest}.<br><br> +<br><br> +On the other hand, when compiling, I get the following warnings:<br><br> +<br><br> +src/handler_transactions.erl:<u></u>3: Warning: undefined callback function<br><br> +handle/2 (behaviour 'cowboy_http_handler')<br><br> +src/handler_transactions.erl:<u></u>3: Warning: undefined callback function<br><br> +terminate/3 (behaviour 'cowboy_http_handler')<br><br> +<br><br> +Is this the expected behavior? I know I _can_ ignore the warnings, but<br><br> +not if I want to use Erlang compiler option warnings_as_errors, for example.<br><br> +<br><br> +Many thanks.<br><br> +<br><br> +- Paulo F. Oliveira<br><br> +<br><br> +<br></div></div><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><span class="HOEnZb"><font color="#888888"><br> +</font></span></blockquote><span class="HOEnZb"><font color="#888888"><br> +<br><br> +-- <br><br> +Loïc Hoguin<br><br> +<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br><br> +</font></span></blockquote></div><br></div><br> + +</tt> |