[erlang-questions] How to get binaries when using {packet, http}
Sverker Eriksson
sverker@REDACTED
Tue Jan 20 11:26:47 CET 2009
No, there is currently no way to get the "strings" in the http-tuples as
binaries instead of lists.
The obvious combinations of options to achieve that would be
[binary,{packet,http}]. But due to fear of breaking running applications
(such as Yaws and Mochiweb) it was not done when {packet, http} was
documented and made official. Consider it an invalid combination and do
not use it.
No decision has been made about introducing http-binaries in this or any
other way.
/Sverker, Erlang/OTP Ericsson
Sergey S wrote:
> Hello.
>
> I discovered that no matter which type of incoming data you choose
> (binary/list), all the data is delivered as lists.
>
> Is there a way to get binaries instead of lists?
>
> If not, is this behaviour going to be changed? In other words, will
> there be a way to get binaries using {packet, http}?
>
> Thanks.
>
> --
> Sergey
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
More information about the erlang-questions
mailing list