diff --git a/pkgs/net-pkgs/net-doc/net/scribblings/http-client.scrbl b/pkgs/net-pkgs/net-doc/net/scribblings/http-client.scrbl index 5ec9e41c4d..5030fffd9f 100644 --- a/pkgs/net-pkgs/net-doc/net/scribblings/http-client.scrbl +++ b/pkgs/net-pkgs/net-doc/net/scribblings/http-client.scrbl @@ -71,6 +71,7 @@ Closes the output side of @racket[hc], if it is live. @defproc[(http-conn-send! [hc http-conn-live?] [uri (or/c bytes? string?)] [#:version version (or/c bytes? string?) #"1.1"] [#:method method (or/c bytes? string? symbol?) #"GET"] + [#:close? close? boolean? #f] [#:headers headers (listof (or/c bytes? string?)) empty] [#:content-decode decodes (listof symbol?) '(gzip)] [#:data data (or/c false/c bytes? string?) #f]) @@ -85,6 +86,10 @@ If @racket[headers] does not contain an @litchar{Accept-Encoding} header, then a header indicating that encodings from @racket[decodes] are accepted is automatically added. +If @racket[close?] is @racket[#t] and @racket[headers] does not +contain a @litchar{Connection} header, then a @litchar{Connection: +close} header will be added. + This function does not support requests that expect @litchar{100 (Continue)} responses.