<div dir="ltr"><div>It is documented (Cowboy 1.x):<br><br>Cowboy will select the most appropriate content-type from the list. If 
any parameter is acceptable, then the tuple form should be used with 
parameters set to <code>'*'</code>. If the parameters value is set to <code>[]</code>
 only content-type values with no parameters will be accepted. All 
parameter values are treated in a case sensitive manner except the <code>charset</code> parameter, if present, which is case insensitive.<br><br></div>So if you set the content type to '*' (that is the atom()), then any content type will be accepted by that resource, unless a more specific content type matches.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 1:38 PM, 寂寂 <span dir="ltr"><<a href="mailto:44290016@qq.com" target="_blank">44290016@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Erlangers,<br><br>I have a client sending POST request to my server, but I'm not sure what kind of Content-type in the POST header. so can I match all Content-Types in 'content_types_accepted' of my REST module?<br><br>Thanks<br><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">J.</div>
</div>