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
requesta request
quota quotation with stack effect ( chunk -- )


Outputs
response/streama 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

: with-http-request
( request quot: ( chunk -- ) -- response/stream )
do-http-request check-response ; inline