diff options
Diffstat (limited to '_build/static/archives/extend/attachments/20140604/407d3443/attachment.html')
-rw-r--r-- | _build/static/archives/extend/attachments/20140604/407d3443/attachment.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/_build/static/archives/extend/attachments/20140604/407d3443/attachment.html b/_build/static/archives/extend/attachments/20140604/407d3443/attachment.html new file mode 100644 index 00000000..42e6ce15 --- /dev/null +++ b/_build/static/archives/extend/attachments/20140604/407d3443/attachment.html @@ -0,0 +1,16 @@ +<tt> +<div dir="ltr">Hello.<div><br></div><div>You wrote <a href="http://ninenines.eu/docs/en/cowboy/HEAD/manual/cowboy_rest/">here</a> that "The only mandatory callback is init/3, needed to perform the protocol upgrade."</div><br> +<div><br></div><div>In my code I have only this function for the protocol upgrade:</div><div><br></div><div><div>init({_TransportName, _ProtocolName}, _Req, []) -></div><div> {upgrade, protocol, cowboy_rest}.</div></div><br> +<div><br></div><div>On the other hand, when compiling, I get the following warnings:</div><div><br></div><div><div>src/handler_transactions.erl:3: Warning: undefined callback function handle/2 (behaviour 'cowboy_http_handler')</div><br> +<div>src/handler_transactions.erl:3: Warning: undefined callback function terminate/3 (behaviour 'cowboy_http_handler')</div></div><div><br></div><div>Is this the expected behavior? I know I _can_ ignore the warnings, but not if I want to use Erlang compiler option warnings_as_errors, for example.</div><br> +<div><br></div><div>Many thanks.</div><div><br></div><div>- Paulo F. Oliveira</div><br> +<br> +<br> +<br> +<br> +<br> +<br> +<br> +</div><br> + +</tt> |