Handbook
Glossary
http-request* ( request -- response data )
HTTP client
ยป
GET requests with the HTTP client
Prev:
http-request ( request -- response data )
Next:
with-http-request ( request quot: ( chunk -- ) -- response/stream )
Vocabulary
http
.
client
Inputs
request
a
request
Outputs
response
a
response
data
a
sequence
Word description
Sends an HTTP request to an HTTP server, and reads the response.
See also
http-request
,
with-http-request
Definition
USING:
accessors
io.encodings.string
kernel
sequences
;
IN:
http.client
:
http-request*
( request -- response data )
BV{
}
clone
[
[
push-all
]
curry
do-http-request
]
keep
B{
}
like
over
content-encoding>>
decode
[
>>body
]
keep
;