247 Commits

Author SHA1 Message Date
xfy
16ac65a8cc add mime types overrides 2024-05-11 09:26:23 +08:00
xfy
38fff15762 add default mime type 2024-05-11 08:41:00 +08:00
xfy
f5d5096d71 read file extension 2024-05-10 17:31:49 +08:00
xfy
e8fbdd29ca add mime types 2024-05-10 17:16:17 +08:00
xfy
d4c730a665 implment rest compression methods 2024-05-10 08:50:17 +08:00
xfy
d1659b3a68 add gzip 2024-05-09 10:17:39 +08:00
xfy
49ccb9a0fa update docs
update depdencies
2024-05-08 08:43:08 +08:00
xfy
c8235432b8 refactor socket handler 2024-05-06 15:52:05 +08:00
xfy
5dc8cb4e60 handle clent closed connection 2024-05-06 14:20:13 +08:00
xfy
7f3c8f7377 update connection error handle 2024-04-30 17:30:27 +08:00
xfy
4eaa66508d implement if-none-match 2024-04-30 13:45:41 +08:00
xfy
45c7e3afb4 refactor get method 2024-04-30 13:29:52 +08:00
xfy
75d8ea00f8 implement zstd compress 2024-04-30 09:50:30 +08:00
xfy
cc93c7995c update deps 2024-04-29 17:29:09 +08:00
xfy
0564c0c0f2 add async-compression dependency 2024-04-29 17:28:46 +08:00
xfy
c8db4d4e08 read accept-encoding header 2024-04-29 17:20:33 +08:00
xfy
eb08257c5f add etag header 2024-04-29 16:49:16 +08:00
xfy
b15d5056dc add file size detect 2024-04-29 16:16:44 +08:00
xfy
cc3b3079e7 add file handle match 2024-04-29 13:58:34 +08:00
xfy
24bd211cab handle internal server error 2024-04-28 10:51:24 +08:00
xfy
0675182407 global cache implementation 2024-04-28 10:36:22 +08:00
xfy
8ecd35afaf add keep-alive timeout
add more default settings

add basic config example
2024-04-28 09:29:49 +08:00
xfy
7cd8606d27 refactor response body
build response for client
2024-04-26 13:21:49 +08:00
xfy
18a0ec77b0 refactor http response structure 2024-04-26 11:56:56 +08:00
xfy
bd9df5235c add keep-alive default timeout 2024-04-26 11:45:07 +08:00
xfy
cc0ba87bcf add graceful shutdown 2024-04-26 09:38:41 +08:00
xfy
d61c0f372d refactor utils
refactor local resource file path parser
2024-04-25 17:13:58 +08:00
xfy
4c5aaf781b add basic infomation log 2024-04-25 15:28:55 +08:00
xfy
46394827c9 update connection handler
refactor static path parse
2024-04-25 13:12:07 +08:00
xfy
f080388292 update route handle
add parse static file path
2024-04-25 12:00:41 +08:00
xfy
8128c6fff2 handle static file 2024-04-25 11:50:03 +08:00
xfy
52cc5e1047 refactor services 2024-04-25 09:04:56 +08:00
xfy
871a77f5bd store routes as btree map 2024-04-24 18:10:58 +08:00
xfy
634a168a3a fix assets path index error 2024-04-24 16:34:58 +08:00
xfy
cd0b811e13 improve performance
remove host clone

parse static path
2024-04-23 17:23:54 +08:00
a7ffde6382 Add CONTRIBUTING 2024-04-23 05:57:29 +00:00
9ff84243dc Add CHANGELOG 2024-04-23 05:57:22 +00:00
f903521c65 Add LICENSE 2024-04-23 05:57:12 +00:00
xfy
6a9125f759 add handle static file path 2024-04-23 13:45:05 +08:00
xfy
1d3e9a106b implment host response 2024-04-23 13:13:41 +08:00
xfy
f79ceb0232 make host into service 2024-04-23 11:46:23 +08:00
xfy
d2adefcab3 init example 2024-04-23 11:23:34 +08:00
xfy
593dc628ed refactor(config): refacotr config reader 2024-04-23 11:03:16 +08:00
xfy
6febdfb534 add init config file 2024-04-23 09:06:19 +08:00
xfy
ef657381f0 add logger 2024-04-23 08:46:42 +08:00
xfy
aaf3c5651c init main 2024-04-23 08:34:46 +08:00
xfy
70fac7a66a init 2024-04-23 08:33:56 +08:00