aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/net/http/files.d.tl
diff options
context:
space:
mode:
Diffstat (limited to 'teal-src/net/http/files.d.tl')
-rw-r--r--teal-src/net/http/files.d.tl14
1 files changed, 14 insertions, 0 deletions
diff --git a/teal-src/net/http/files.d.tl b/teal-src/net/http/files.d.tl
new file mode 100644
index 00000000..d0ba5c1c
--- /dev/null
+++ b/teal-src/net/http/files.d.tl
@@ -0,0 +1,14 @@
+local record serve_options
+ path : string
+ mime_map : { string : string }
+ cache_size : integer
+ cache_max_file_size : integer
+ index_files : { string }
+ directory_index : boolean
+end
+
+local record http_files
+ serve : function(serve_options|string) : function
+end
+
+return http_files