From 015cf1b74f7ddc1bc184e1c2ca0dc6eca4e504ea Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Mon, 21 Apr 2014 15:27:34 -0600 Subject: [PATCH] fix pr14460 --- pkgs/net-pkgs/net-doc/net/scribblings/http-client.scrbl | 5 +++++ 1 file changed, 5 insertions(+) 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.