Handbook
Glossary
with-http-request ( request quot: ( chunk -- ) -- response/stream )
HTTP client
ยป
GET requests with the HTTP client
Prev:
http-request* ( request -- response data )
Vocabulary
http
.
client
Inputs
request
a
request
quot
a
quotation
with stack effect
( chunk -- )
Outputs
response/stream
a response or a stream
Word description
A variant of
do-http-request
that checks that the response was successful.
See also
http-request
,
http-request*
Definition
IN:
http.client
:
with-http-request
( request quot: ( chunk -- ) -- response/stream )
do-http-request
check-response
;
inline