Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add warning on RequestBodyEnumChunked constructor

  • Loading branch information...
commit ced1f978a7087b9ac1b53075731501c480010677 1 parent ddb5a22
Mathias Biilmann biilmann authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Network/HTTP/Enumerator.hs
5 Network/HTTP/Enumerator.hs
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.