Handbook
Glossary
<response> ( -- response )
HTTP protocol objects
ยป
HTTP responses
Prev:
response
Next:
raw-response
Vocabulary
http
Inputs
None
Outputs
response
a
response
Word description
Creates an empty response containing default headers.
Definition
USING:
accessors
calendar
calendar.format
io.encodings.utf8
kernel
;
IN:
http
:
<response>
( -- response )
response
new
"1.1"
>>version
H{
}
clone
>>header
"close"
"Connection"
set-header
now
timestamp>http-string
"Date"
set-header
"Factor http.server"
"Server"
set-header
utf8
>>content-encoding
V{
}
clone
>>cookies
;