http.server.static vocabulary
Factor handbook > Vocabulary index


Documentation
Serving static content

Words

Tuple classes
ClassSuperclassSlots
file-responder tupleroot hook special index-names allow-listings


Ordinary words
WordStack effect
(serve-static)( path mime-type -- response )
<file-responder>( root hook -- responder )
<static>( root -- responder )
?parent-dir-link( -- xml/f )
?toggle-sort-order( col current-col -- order )
add-index( name responder -- )
directory>html( path -- xml )
enable-fhtml( responder -- responder )
file-html-template( href size modified -- xml )
file>html( name infos -- xml )
find-index( filename -- path )
list-directory( directory -- response )
listing( path -- seq-xml )
listing-body( title path -- xml )
listing-html-template( title listing ?parent CO-N CO-M CO-S -- xml )
listing-sort-with( seq quot: ( elt -- key ) -- sortedseq )
listing-title( -- title )
modified-since( request -- date )
modified-since?( filename -- ? )
parent-dir-link( -- xml )
serve-directory( filename -- response )
serve-fhtml( path -- response )
serve-file( filename -- response )
serve-object( filename -- response )
serve-static( filename mime-type -- response )
serving-path( filename -- filename )
size-without-directories( info -- size )
sort-asc?( -- ? )
sort-column( -- column )
sort-listing( zipped-files-infos -- sorted )
sort-order( -- order )
sort-orders( -- CO-N CO-M CO-S )
sort-with-modified( {file,info} -- sorted )
sort-with-name( {file,info} -- sorted )
sort-with-size( {file,info} -- sorted )
toggle-order( order -- order' )
zip-files-infos( files -- zipped )


Class predicate words
WordStack effect
file-responder?( object -- ? )


Files