Handbook
Glossary
serve-object ( filename -- response )
Vocabulary
http
.
server
.
static
Inputs
filename
an
object
Outputs
response
an
object
Definition
USING:
http.server.responses
io.files
io.files.info
kernel
;
IN:
http.server.static
:
serve-object
( filename -- response )
serving-path
dup
file-exists?
[
dup
file-info
directory?
[
serve-directory
]
[
serve-file
]
if
]
[
drop
<404>
]
if
;