summaryrefslogblamecommitdiffstats
path: root/archives/extend/attachments/20140604/407d3443/attachment.html
blob: 42e6ce15fccd54d0f64f74982b08667e4da49a7b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
<tt>
&lt;div&nbsp;dir=&quot;ltr&quot;&gt;Hello.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;You&nbsp;wrote&nbsp;&lt;a&nbsp;href=&quot;http://ninenines.eu/docs/en/cowboy/HEAD/manual/cowboy_rest/&quot;&gt;here&lt;/a&gt; that&nbsp;&quot;The&nbsp;only&nbsp;mandatory&nbsp;callback&nbsp;is&nbsp;init/3,&nbsp;needed&nbsp;to&nbsp;perform&nbsp;the&nbsp;protocol&nbsp;upgrade.&quot;&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In&nbsp;my&nbsp;code&nbsp;I&nbsp;have&nbsp;only&nbsp;this&nbsp;function&nbsp;for&nbsp;the&nbsp;protocol&nbsp;upgrade:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;init({_TransportName,&nbsp;_ProtocolName},&nbsp;_Req,&nbsp;[])&nbsp;-&gt;&lt;/div&gt;&lt;div&gt; &nbsp; &nbsp;{upgrade,&nbsp;protocol,&nbsp;cowboy_rest}.&lt;/div&gt;&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;On&nbsp;the&nbsp;other&nbsp;hand,&nbsp;when&nbsp;compiling,&nbsp;I&nbsp;get&nbsp;the&nbsp;following&nbsp;warnings:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;src/handler_transactions.erl:3:&nbsp;Warning:&nbsp;undefined&nbsp;callback&nbsp;function&nbsp;handle/2&nbsp;(behaviour&nbsp;&#39;cowboy_http_handler&#39;)&lt;/div&gt;<br>
&lt;div&gt;src/handler_transactions.erl:3:&nbsp;Warning:&nbsp;undefined&nbsp;callback&nbsp;function&nbsp;terminate/3&nbsp;(behaviour&nbsp;&#39;cowboy_http_handler&#39;)&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Is&nbsp;this&nbsp;the&nbsp;expected&nbsp;behavior?&nbsp;I&nbsp;know&nbsp;I&nbsp;_can_&nbsp;ignore&nbsp;the&nbsp;warnings,&nbsp;but&nbsp;not&nbsp;if&nbsp;I&nbsp;want&nbsp;to&nbsp;use&nbsp;Erlang&nbsp;compiler&nbsp;option warnings_as_errors,&nbsp;for&nbsp;example.&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Many&nbsp;thanks.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-&nbsp;Paulo&nbsp;F.&nbsp;Oliveira&lt;/div&gt;<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
&lt;/div&gt;<br>

</tt>