Commit Graph

59 Commits

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