Handbook
Glossary
http-head ( url -- response data )
HTTP client
ยป
HEAD requests with the HTTP client
Next:
http-head* ( url -- response data )
Vocabulary
http
.
client
Inputs
url
an
url
or a
string
Outputs
response
a
response
data
a
sequence
Word description
Same as
http-get
except that the server is not supposed to return a message-body in the response, as per RFC2616. However in practise, most web servers respond to GET and HEAD method calls with identical responses.
Errors
Throws an error if the HTTP request fails.
See also
http-head*
Definition
IN:
http.client
:
http-head
( url -- response data )
<head-request>
http-request
;