httph_bin works, but missing from type spec

Jay Nelson jay@REDACTED
Fri Mar 19 22:53:28 CET 2010


http_reply.erl:147:

    The call erlang:decode_packet('httph_bin',Binary::binary(),[])  
will never return since it differs in the 1st argument from the  
success typing arguments:

      ('asn1' | 'cdr' | 'fcgi' | 'http' | 'http_bin' | 'httph' |  
'line' | 'raw' | 'sunrm' | 'tpkt' | 0 | 1 | 2 | 4,binary(),
      [{'line_length',non_neg_integer()} |  
{'packet_size',non_neg_integer()}])


The function works just fine but dialyzer complains.

jay



More information about the erlang-questions mailing list