Commit Graph

55 Commits

Author SHA1 Message Date
2e6ce88e80 add exception for sessionSecret 2023-05-14 20:22:37 +02:00
8a3683d2e5 allow undefined arg for cookie, just set cookie if session has entries 2023-05-13 06:29:01 +02:00
96a73035f8 add sessionDestroy func 2023-05-13 06:25:28 +02:00
5392b032d0 add sessionExpire option 2023-05-13 04:58:01 +02:00
d519c7bf9c add sessions, add session example 2023-05-13 04:50:15 +02:00
b2e357227c add example for multiple preprocessors 2023-05-12 15:19:02 +02:00
1376fbdeba replace return with continue 2023-05-12 15:05:06 +02:00
7f1fce92b2 revert last change 2023-05-12 14:51:36 +02:00
784a34ed4d fix memory leak, close file after serve 2023-05-12 14:49:21 +02:00
4e1ac5888a better example html 2023-05-12 14:14:06 +02:00
e6f6b1ddc5 add var to identify static resource requests 2023-05-12 14:10:41 +02:00
06695c5443 add img to html static test 2023-05-12 14:01:51 +02:00
c6cb48b4ff add static example to site html test 2023-05-12 14:00:24 +02:00
452be0cecf export HTTPMethod 2023-05-12 13:57:13 +02:00
ec0df0de60 change HTTPMethod to enum 2023-05-12 13:55:26 +02:00
ca6d23f5ef fix catch block text 2023-05-12 13:34:11 +02:00
d89310bb2e remove whitespace at start of path 2023-05-12 13:09:23 +02:00
1c085b9ec5 catch issue where the connection was closed before reply 2023-05-12 13:09:09 +02:00
5626782178 do log after request is done 2023-05-12 12:55:31 +02:00
e3e5f8c1d2 add funcs for better content handling 2023-05-12 12:43:54 +02:00
03a1f35eaa add preprocessor handlers 2023-05-12 12:28:26 +02:00
0675b26dad remove query params from path param if present 2023-05-12 12:12:35 +02:00
1c668e5892 add reply to middlewareResponse 2023-05-12 11:56:48 +02:00
301a6d2c3d adjust listenting console output 2023-05-12 10:29:45 +02:00
49d5818062 remove unused npm import 2023-05-12 10:20:06 +02:00
ee384eb4bc remove unused func 2023-05-12 10:18:35 +02:00
60b819b9a4 massive performance fixes 2023-05-12 10:16:26 +02:00
42ae41ba87 replace URL with split to gain some extra performance 2023-05-11 15:59:44 +02:00
bbc861fde3 force async func 2023-05-11 14:30:53 +02:00
874c43126d add static example 2023-05-11 14:27:22 +02:00
64d77caeb1 add prettyTime npm example usage 2023-05-11 14:20:37 +02:00
8482c4c6cc use hrtime instead of date 2023-05-11 13:29:23 +02:00
10fb61793f add done promise for middleware 2023-05-11 13:11:14 +02:00
b974abff1b add ip func to request 2023-05-11 12:33:57 +02:00
a9017c7550 add middleware handler, move notfound to own func 2023-05-11 12:16:13 +02:00
ab10ab7091 add object returner support 2023-05-11 11:53:28 +02:00
bf454f83b8 rename module 2023-05-11 10:29:54 +02:00
d7d2320103 add close func 2023-05-11 10:29:21 +02:00
8c2a3eb798 remove vscode dir from gitignore 2023-05-11 10:29:13 +02:00
e0b2739408 add json configurations 2023-05-11 10:28:57 +02:00
93f5bd30b9 add custom not found handler 2023-05-11 09:32:18 +02:00
63be7aba60 update test example 2023-05-11 08:42:45 +02:00
0f176fbe6b fix RouteRequest method type 2023-05-11 08:11:11 +02:00
ef5a205bda fix types 2023-05-11 07:12:51 +02:00
d4075a6bb5 add queryParams 2023-05-11 07:03:10 +02:00
129366c087 add pathParams 2023-05-11 06:46:41 +02:00
5da902fb3b fix response 2023-05-10 19:03:24 +02:00
11e7ff63f8 add cookiestorage, add better immuteable handing 2023-05-10 16:28:01 +02:00
4ed1c7c812 add duplicated routes check 2023-05-10 15:28:00 +02:00
be5c65e759 remove unused url regex 2023-05-10 15:25:38 +02:00