Handbook
Glossary
read-response-header ( response -- response )
Vocabulary
http
.
client
.
private
Inputs
response
a
response
Outputs
response
a
response
Word description
Initializes the 'header', 'cookies', 'content-type', 'content-charset' and 'content-encoding' field of the response.
Definition
USING:
accessors
http
kernel
;
IN:
http.client.private
:
read-response-header
( response -- response )
read-header
>>header
dup
"set-cookie"
header
parse-set-cookie
>>cookies
dup
"content-type"
header
[
parse-content-type
[
>>content-type
]
[
>>content-charset
]
bi*
dup
detect-encoding
>>content-encoding
]
when*
;