Permalink
Browse files

Add warning on RequestBodyEnumChunked constructor

  • Loading branch information...
1 parent ddb5a22 commit ced1f978a7087b9ac1b53075731501c480010677 @biilmann biilmann committed Sep 16, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 Network/HTTP/Enumerator.hs
@@ -325,6 +325,11 @@ data Request m = Request
-- | When using the 'RequestBodyEnum' constructor and any function which calls
-- 'redirectIter', you must ensure that the 'Enumerator' can be called multiple
-- times.
+--
+-- The 'RequestBodyEnumChunked' will send a chunked request body, note
+-- that not all servers support this. Only use 'RequestBodyEnumChunked'
+-- if you know the server you're sending to supports chunked request
+-- bodies.
data RequestBody m
= RequestBodyLBS L.ByteString
| RequestBodyBS S.ByteString

0 comments on commit ced1f97

Please sign in to comment.