api

static.ch

Declarations in static.ch

1 declarationshttp

Declarations

Public only
http#
Publicnamespace
namespace http
===== Static file serving =====
FileServer#
Publicstruct
struct FileServer { var root : string }
constructor#
PublicfunctionConstructor
func constructor(root_path : *char) : FileServer
get_mime_type#
Publicfunction
func get_mime_type(ext : &string) : string_view
serve_http#
Publicfunction
func serve_http(self : &FileServer, req : Request, res : ResponseWriter) : void
make#
functionConstructor
func make() : FileServer
delete#
function
func delete(self : *FileServer) : void
create_file_server#
Publicfunction
func create_file_server(root : *char) : FileServer