diff --git a/README.md b/README.md index 9507b09..60123fa 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Axon is a backend library who tries to be simple and powerfull. Currently Axon is 2X faster than Express. :D please checkout [Axon Benchmarks](./benchmarks/README.md) Latest change: -- `text/plain` response in core default response errors bug fixed. +- `CORS` config added to AxonCore. - Plugin manager system added to core. (Document will update soon - 2024/10/24) diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index b245847..7041108 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1,5 +1 @@ -<<<<<<< HEAD -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAACoWSsWrDMBBA/+Vm0ySmSVtvxRC6BIrX0kHYZ0dEObm6M3Up+fcMSrGj2taqp/c4dPr4BcFeIIPX3lJuHUICrZIjZFAaxYy8+iMPRzkbSOCkqYJskz5fkn92bqnWzdDQJOhqVY4y/sp9LN3ugti76RpNsyGPY5ECubXEeEBm1eBsLbi3lH1DVaHjydSNLekFfnXIMqnf2LLuB53xPYy9Sm4dh3uSn3ZYEU+uaP3ytNmmo1ZuSZw1Bl3YGUiscdBVZfBbjf+dbwwk1iDsZU+h709jbmE7Gc9fd1SKtsQrT+793ePl8wqLHt3bMgMAAA==" -======= -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAACoWSwY6CQAxA/6VnsihZdeW2ITF7MdlwNR4mUHDi2GGnJWKM/+5h3IAocO3re+mhuysINgIxfDeWEusQAqiUHCCGzChm5PCffBzkZCCAo6Yc4nn0dQte7MRSocu2oUnQFSrrZPzKcyxaLHuxX1OXmgZDHk9FUuTKEuMWmVWJg7Xe3lj2B1WOjt+mHmxMT/GvRpa3+oON6/7QAd/DsUBiSZw1Bl2bkEuFHLak58/Wq/ki6jS2Os8NnlX3V3yjJVMNwkY21Pf9dMpNbS3d+4uaMtGWOPTk2V9+3vZ32Cr90OYCAAA=" ->>>>>>> dcff1c2d383ff73442e501794ffbc565204741a4 +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAACoWSsWrDMBBA/+Vm0ySmSVtvxRC6BIrX0kHYZ0dEObm6M3Up+fcMSrGj2taqp/c4dPr4BcFeIIPX3lJuHUICrZIjZFAaxYy8+iMPRzkbSOCkqYJskz5fkn92bqnWzdDQJOhqVY4y/sp9LN3ugti76RpNsyGPY5ECubXEeEBm1eBsLbi3lH1DVaHjydSNLekFfnXIMqnf2LLuB53xPYy9Sm4dh3uSn3ZYEU+uaP3ytNmmo1ZuSZw1Bl3YGUiscdBVZfBbjf+dbwwk1iDsZU+h709jbmE7Gc9fd1SKtsQrT+793ePl8wqLHt3bMgMAAA==" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 284c4ff..4e48aa4 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1,5 +1 @@ -<<<<<<< HEAD -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACq2abW/iOBDHv4t5m6X1ONDCu26P7Z103a6Kbt9EVZUSQ6MLMZeEbldVv/vJ5GkcT4qBvgKRmf+Mxz8/xOaNZepXzqbBG/s3TiM2HfseS8O1ZFN2r7aFzJjHtlnCpmy5TRdFrNL8rHwwfC7WCfPYIgnzXOZsyti7V8vAaNzqyP+2Mi8aoTgtZLYMFzI/qx59KMXPoc3pSUW/9wkNKqNWrcijL3H+JU6fZRYXMmIe24SZTAuUXU/ATZiF63xvyMbs2KBmwfKNSnNJRy2fuZcsL8Ji29MCpDVo7FybUCXZhh2PRqJtxeNj8Xuzvw1V3GFjjlpEhBtWadKV+1OGkczIxlaPPq4bXDZSV68qvVZZ24DK46x+8KHSiEOjtFBpXmTbRaGyj8UGpiVdiCYvVIFzv807UWH0I9mu4nRPMMPw+FjXKl3GK4dYjeHxsXYTj0Oo2u64SKtEPYXJbRxFifwV7iNgQJgf2cI4L+TeXquN3GOg8VE/7nQaGiamhfss88fs6z83joKD2vjjNlRJ9gT8++7mZnbvGrGxPj3k48/Z/de7+eyw0MjrlBTuZ/Mfd9/ns8fb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sAETJmBCIyNIOoUNmDAB8zUygqTTtwHzTcD8HWAknb4NmG8C5kNfsX2bL9/ky9fE+CTZvs2X39ls+b2Bie1W+dNuf/sis0JGf5X73CBoNtFv7LHa/DYb7Dc2ZtO3d49B9SmqTx+qT19/vrdb4d2vzW5YP9N5VMc9z/URSxuqvZZ7YzBxE3tV6WJ3fdfKIJXLg0QW1bFjK8VHrRYfHSKW22KAxMBdbFO9aLdCAgmJC2ehrDqHXdcn6yg1jlLjTorl7TuSQApOAsYtaKszaXXcEFigl19UI6Tju7VI95rRonPUpHM3CXxqh5JBSsItmUg+bU0U0UDkYyeN6jCTGmmoOsKtaeX95xq9sqPcBMpNOMkRSV20Im5QlwcnqMxo5PturarvWVFbfNQWtxlN30UTcwcaU9yt07WQPdw5ooc7NkuFUVbejiMdNES52xhN1GpljiuOeom7dVMp8vgisyeVmxmhDuNuc/U6fO3MXQLVWbg1q7z2SFUR1tdXaGig/ge3/m9uUZAKKhM4towcWj7qfN9taJUHUqhAaOYQbrno09+lueagsgi3xStVxbK8NEV1wcuEW2dVh+15edhe/30JZYYmH+HWYfWdG8oL1QjcsK7/C4YyQYm4SdSXG4vmcgOpoVIJN72s/gseGmJohDlq1P9KQxAiBg8Seaz2GkaZOFp8uNsan1X/UWxF0LBwmxLL63NZXp+jjkedBm5VthFE+zG3odFcLqDuRjOGcKjKg8c28UYmcSrZNHh4f/8fHjl3ReQpAAA="; -======= -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAACqWZbW/iOBDHv4t5m6XMmPD0rttjeyddd1etbt9EFUqJ20YXYi4JbVcV3/1k8uAxNmDaV6B45j/j8c8Pcd5ZIV9LNove2b9pnrDZaBiwPF4JNmO3clOJggVsU2Rsxh43+bJKZV5e1A3952qVsYAts7gsRclmjG2DVgbDkdYR/21EWXVCaV6J4jFeivKiaToqBQPUOT3I5PcpoV5jpNWqMvmSll/S/FkUaSUSFrB1XIi8ItkdCLiOi3hVngzZmX00qFmwci3zUrij1m3+JSuruNo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vZMW2ICBCRhoZICkE2zAwAQMNDJA0gk2YGACBhoZIOkEGzAwARM7wEg6hQ2YMAETGhlB0ilswIQJmNDICJJOYQMmOgvhbiUk6RTEWmgCJjQygl5HbcCECZjQyAiSTmEDJkzARC9gwgZMmIAJjYwgyRY2YMIETGhkBEmnsAETJmBCIyNIOoUNmDAB8zUygqTTtwHzTcD8HWAknb4NmG8C5kNfsX2bL9/ky9fE+CTZvs2X39ls+b2Bie1W+dNuf/sis0JGf5X73CBoNtFv7LHa/DYb7Dc2ZtO3d49B9SmqTx+qT19/vrdb4d2vzW5YP9N5VMc9z/URSxuqvZZ7YzBxE3tV6WJ3fdfKIJXLg0QW1bFjK8VHrRYfHSKW22KAxMBdbFO9aLdCAgmJC2ehrDqHXdcn6yg1jlLjTorl7TuSQApOAsYtaKszaXXcEFigl19UI6Tju7VI95rRonPUpHM3CXxqh5JBSsItmUg+bU0U0UDkYyeN6jCTGmmoOsKtaeX95xq9sqPcBMpNOMkRSV20Im5QlwcnqMxo5PturarvWVFbfNQWtxlN30UTcwcaU9yt07WQPdw5ooc7NkuFUVbejiMdNES52xhN1GpljiuOeom7dVMp8vgisyeVmxmhDuNuc/U6fO3MXQLVWbg1q7z2SFUR1tdXaGig/ge3/m9uUZAKKhM4towcWj7qfN9taJUHUqhAaOYQbrno09+lueagsgi3xStVxbK8NEV1wcuEW2dVh+15edhe/30JZYYmH+HWYfWdG8oL1QjcsK7/C4YyQYm4SdSXG4vmcgOpoVIJN72s/gseGmJohDlq1P9KQxAiBg8Seaz2GkaZOFp8uNsan1X/UWxF0LBwmxLL63NZXp+jjkedBm5VthFE+zG3odFcLqDuRjOGcKjKg8c28UYmcSrZNHh4f/8fHjl3ReQpAAA="; \ No newline at end of file diff --git a/docs/classes/AxonCore.html b/docs/classes/AxonCore.html index f36e256..81bdbcc 100644 --- a/docs/classes/AxonCore.html +++ b/docs/classes/AxonCore.html @@ -1,37 +1,18 @@ -<<<<<<< HEAD -
A method to config core as you want
If you want to config the core, use this method before all other methods.
core config object
-Loads a specified Axon plugin using the plugin loader.
The plugin to be loaded. It should be an instance of AxonPlugin.
-Start listening to http incoming requests
-server host address
-server port
-Optional
callback: (() => void)callback a function to run after starting to listen
-A method to config core as you want
-If you want to config the core, use this method before all other methods.
-core config object
-Loads a specified Axon plugin using the plugin loader.
-The plugin to be loaded. It should be an instance of AxonPlugin.
-Optional
prefix: stringMore features soon...
Optional
CORSCors configuration for AxonCore.
-Optional
DEBUGAxonCore debug mode.
-Optional
LOGGERAxonCore logger.
-Optional
LOGGER_Verboose mode of logger.
-Optional
RESPONSE_Configuration for AxonCore custom response messages.
-Optional
DEBUGAxonCore debug mode.
+Optional
LOGGERAxonCore logger.
+Optional
LOGGER_Verboose mode of logger.
+Optional
RESPONSE_Configuration for AxonCore custom response messages.
+Configuration for AxonCore custom response messages.
-Optional
methodresponse error message for 405 method not allowed response from core
@@ -13,14 +9,7 @@Optional
notresponse error message for 404 not found response from core
+Optional
notresponse error message for 404 not found response from core
use {path}
to show request method.
Optional
serverresponse error message for 500 internal server error response from core
-Optional
notresponse error message for 404 not found response from core
-use {path}
to show request method.
Optional
serverresponse error message for 500 internal server error response from core
-Optional
serverresponse error message for 500 internal server error response from core
+
Start listening to http incoming requests
+