Handbook
Glossary
<content> ( body content-type -- response )
Furnace framework
»
HTTP server
»
Canned HTTP responses
Next:
<text-content> ( body -- response )
Vocabulary
http
.
server
.
responses
Inputs
body
a response body
content-type
a
string
Outputs
response
a
response
Word description
Creates a successful HTTP response which sends a response body with the specified content type to the client.
See also
<text-content>
,
<html-content>
Definition
USING:
accessors
http
io.encodings.utf8
kernel
;
IN:
http.server.responses
:
<content>
( body content-type -- response )
<response>
200
>>code
"Document follows"
>>message
utf8
>>content-encoding
swap
>>content-type
swap
>>body
;