diff options
author | Sverker Eriksson <[email protected]> | 2011-09-16 18:59:02 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2011-09-16 18:59:02 +0200 |
commit | 9d1b6de75122c940333fe86b931771cc6f2d67e2 (patch) | |
tree | 7fe49f913fb3d1451baf3d8f413e2ef1f1bec0cb | |
parent | 2d6bb0b74427e29b9333bba57683472181243ba5 (diff) | |
parent | ee9fe61f2fae977aff53a4c4a6fa647b02f9092b (diff) | |
download | otp-9d1b6de75122c940333fe86b931771cc6f2d67e2.tar.gz otp-9d1b6de75122c940333fe86b931771cc6f2d67e2.tar.bz2 otp-9d1b6de75122c940333fe86b931771cc6f2d67e2.zip |
Merge branch 'sverker/gen_tcp-httph-explicit' into dev
* sverker/gen_tcp-httph-explicit:
[inet] Clearify doc about packet types httph and httph_bin
-rw-r--r-- | lib/kernel/doc/src/inet.xml | 10 |
1 files changed, 8 insertions, 2 deletions
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 <c>{ok, HttpPacket}</c> from <c>gen_tcp:recv</c> while an active socket will send messages like <c>{http, Socket, HttpPacket}</c>.</p> - <p>Note that the packet type <c>httph</c> is not - needed when reading from a socket.</p> + </item> + <tag><c>httph | httph_bin</c></tag> + <item> + <p>These two types are often not needed as the socket will + automatically switch from <c>http</c>/<c>http_bin</c> to + <c>httph</c>/<c>httph_bin</c> internally after the first line + has been read. There might be occasions however when they are + useful, such as parsing trailers from chunked encoding.</p> </item> </taglist> </item> |