Add support units in server

Added support for loading and calling server modules.
Added the download of the configuration file(httpd.ini).
Several bugs have been fixed.
Added simple example for generating server units and mime types file.
This commit is contained in:
Doczom
2023-12-03 04:14:48 +05:00
committed by GitHub
parent 6030a5f8fe
commit 28f8ec4964
11 changed files with 579 additions and 147 deletions

32
utils/mime_types.asm Normal file
View File

@@ -0,0 +1,32 @@
format binary as "bin"
use32
org 0
macro table arg3, [arg1,arg2] {
local ..x,..x_end
forward
dd ..x
common
local ..other
dd ..other
; <20><><EFBFBD> size = ($ - <20><><EFBFBD><EFBFBD><EFBFBD>) / 8
forward
..x db ..x_end-..x - 1, arg1
..x_end db arg2, 0
common
..other dd 0
db arg3, 0
}
table 'application/octet-stream' ,\
'.html', 'text/html' ,\
'.css', 'text/css' ,\
'.js', 'text/javascript' ,\
'.txt', 'text/plain' ,\
'.pdf', 'application/pdf' ,\
'.json', 'application/json' ,\
'.png', 'image/png' ,\
'.mp3', 'audio/mpeg' ,\
'.mp4', 'video/mp4'