fix pr14460
This commit is contained in:
parent
f6a7be5730
commit
015cf1b74f
|
@ -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?)]
|
@defproc[(http-conn-send! [hc http-conn-live?] [uri (or/c bytes? string?)]
|
||||||
[#:version version (or/c bytes? string?) #"1.1"]
|
[#:version version (or/c bytes? string?) #"1.1"]
|
||||||
[#:method method (or/c bytes? string? symbol?) #"GET"]
|
[#:method method (or/c bytes? string? symbol?) #"GET"]
|
||||||
|
[#:close? close? boolean? #f]
|
||||||
[#:headers headers (listof (or/c bytes? string?)) empty]
|
[#:headers headers (listof (or/c bytes? string?)) empty]
|
||||||
[#:content-decode decodes (listof symbol?) '(gzip)]
|
[#:content-decode decodes (listof symbol?) '(gzip)]
|
||||||
[#:data data (or/c false/c bytes? string?) #f])
|
[#: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]
|
header, then a header indicating that encodings from @racket[decodes]
|
||||||
are accepted is automatically added.
|
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
|
This function does not support requests that expect
|
||||||
@litchar{100 (Continue)} responses.
|
@litchar{100 (Continue)} responses.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user