:- use_module(library(http/http_header)). http_update_transfer(+Request, 
+CGIHeader, -Transfer, -Header)
http_update_transfer(+Request, 
+CGIHeader, -Transfer, -Header)never, 
even explicit requests are ignored. If on_request, chunked 
encoding is used if requested through the CGI header and allowed by the 
client. If
if_possible, chunked encoding is used whenever the client 
allows for it, which is interpreted as the client supporting HTTP 1.1 or 
higher.
Chunked encoding is more space efficient and allows the client to start processing partial results. The drawback is that errors lead to incomplete pages instead of a nicely formatted complete page.