-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Chunked HTTP transfer encoding for bytestring builders
--   
--   This library contains functions for encoding bytestring
--   builders for chunked HTTP/1.1 transfer.
--   
--   This functionality was extracted from the blaze-builder
--   package.
@package bsb-http-chunked
@version 0.0.0.4

-- | HTTP/1.1 chunked transfer encoding as defined in RFC 7230 Section
--   4.1
module Data.ByteString.Builder.HTTP.Chunked

-- | Transform a builder such that it uses chunked HTTP transfer encoding.
--   
--   
--   >>> :set -XOverloadedStrings
--   
--   >>> import Data.ByteString.Builder as B
--   
--   >>> let f = B.toLazyByteString . chunkedTransferEncoding . B.lazyByteString
--   
--   >>> f "data"
--   "004\r\ndata\r\n"
--   
--   
--   
--   >>> f ""
--   ""
--   
--   
--   Note: While for many inputs, the bytestring chunks that can be
--   obtained from the output via toChunks .
--   toLazyByteString each form a chunk in the sense of RFC
--   7230 Section 4.1, this correspondence doesn't hold in general.
chunkedTransferEncoding :: Builder -> Builder

-- | The zero-length chunk 0\r\n\r\n signalling the termination of
--   the data transfer.
chunkedTransferTerminator :: Builder
