EzyHTTP Server Properties

Updated at 1685686473000
EzyHTTP provides a list of properites:

PropertyDefault ValueDescription
1server.host0.0.0.0Server loopback address
2server.port8080Server port
3server.max_threads256Maximum number of threads in a http server
4server.min_threads16Minimum number of threads in a http server
5server.idle_timeout150000 millisMaximum of a session idle time
6server.multipart.locationtmpTemporarily folder for file upload
7server.multipart.file_size_threshold5MBThe size threshold after which files will be written to disk
8server.multipart.max_file_size5MBThe maximum size allowed for uploaded files
9server.multipart.max_request_size5MBThe maximum size allowed for multipart/form-data requests
10cors.enablefalseEnable Cross origin or not
11cors.allowed_originsAllowed cross origin URLs
12cors.allowed_headersAllowed cross origin headers
13management.enablefalseEnable management or not
14management.host0.0.0.0Management loopback address
15management.port18080Management port
16management.urisemptySpecific management URIs
17management.uris_exposefalseExpose all resources uri or not
18resources.enablefalseEnable resources to download or not
19resources.locationsstaticResources locations
20resources.locationstaticResources location
21resources.patternemptyPattern to filter resources
22resources.download.capacity100000Max download request queue
23resources.dowload.thread_pool_sizeProcessors x 2Download thread pool size
24resources.download.buffer_size1024Download buffer size
25resources.upload.enablefalseEnable or disable upload
26resources.upload.capacity100000Capacity of upload queu size
27resources.upload.thread_pool_sizeProcessors x 2Upload thread pool size
28resources.upload.buffer_size1024Upload buffer size
29view.template.modeHTMLTemplate mode
30view.template.prefixtemplates/Template file prefix
31view.template.suffix.htmlTemplate file suffix
32view.template.cache_ttl_ms3600000Time to Live in millis for template caching
33view.template.cacheabletrueCache view template or not
34view.template.messages_locationmessagesMessage files location
35async.default_timeout0Default timeout for asynchronous API

Next

You can see how to serve static files with EzyHTTP.