Handbook
Glossary
http-request ( request -- response data )
HTTP client
ยป
GET requests with the HTTP client
Prev:
<get-request> ( url -- request )
Next:
http-request* ( request -- response data )
Vocabulary
http
.
client
Inputs
request
a
request
Outputs
response
a
response
data
a
sequence
Word description
A variant of
http-request*
that checks that the response was successful.
Errors
Throws an error if the HTTP request fails.
See also
http-request*
,
with-http-request
Definition
USING:
kernel
;
IN:
http.client
:
http-request
( request -- response data )
http-request*
[
check-response
]
dip
;