From ee9fe61f2fae977aff53a4c4a6fa647b02f9092b Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Thu, 15 Sep 2011 18:05:13 +0200 Subject: [inet] Clearify doc about packet types httph and httph_bin --- lib/kernel/doc/src/inet.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/kernel/doc/src') diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml index b36c28e027..fad5af85bb 100644 --- a/lib/kernel/doc/src/inet.xml +++ b/lib/kernel/doc/src/inet.xml @@ -555,8 +555,14 @@ fe80::204:acff:fe17:bf38 mode will return {ok, HttpPacket} from gen_tcp:recv while an active socket will send messages like {http, Socket, HttpPacket}.

-

Note that the packet type httph is not - needed when reading from a socket.

+ + httph | httph_bin + +

These two types are often not needed as the socket will + automatically switch from http/http_bin to + httph/httph_bin internally after the first line + has been read. There might be occasions however when they are + useful, such as parsing trailers from chunked encoding.

-- cgit v1.2.3