Commit Graph

38 Commits

Author SHA1 Message Date
Stijn Taelemans
ce1f4300ff feat: Replace express with native http module
* refactor: replace express with native http module

* fix: 404 when unhandled

* chore: removed express dependency

* chore: updated package-lock.json

* docs: added documentation for BaseHttpServerFactory

* chore: updated package-lock.json

Co-authored-by: Arthur Joppart <arthur@digita.ai>
2021-02-11 10:15:40 +01:00
Stijn Taelemans
9b6eab27bc refactor: upgraded @types/cors 2021-02-10 11:11:57 +01:00
Joachim Van Herwegen
73acb9cd52 fix: Prevent race condition in OPTIONS call 2021-02-05 17:18:45 +01:00
Ruben Verborgh
c899e6c4b1 fix: Do not re-encode static assets. (#566)
Fix serving binary static assets.
2021-01-28 22:02:32 +00:00
Ruben Verborgh
2563335403 feat: Support folders in StaticAssetHandler.
Closes https://github.com/solid/community-server/issues/548
2021-01-28 09:07:54 +01:00
Ruben Verborgh
eb1440851a refactor: Move handlers into subfolder. 2021-01-27 11:29:35 +01:00
Ruben Verborgh
394e28b69d change: Make header capitalization consistent. 2021-01-26 10:52:38 +01:00
Joachim Van Herwegen
e752927171 fix: Remove all instanceof checks
This prevents problems with different environments.
Also introduces unit tests to double check HttpError values.
2021-01-25 16:11:43 +01:00
Ruben Verborgh
75d0d4152a feat: Add placeholders for static assets to configuration. 2021-01-21 10:35:07 +01:00
Ruben Verborgh
5a12315554 feat: Add StaticAssetHandler. 2021-01-21 10:35:07 +01:00
Joachim Van Herwegen
ee50f40062 docs: Add comments referencing the Solid spec where relevant
Also some minor changes to completely match the spec there.
2021-01-15 08:42:36 +01:00
Matthieu Bosquet
a73936f522 refactor: Add HttpHandlerInput interface 2021-01-02 13:39:45 +01:00
Ruben Verborgh
907caa1e93 fix: Do not write error if response already started. 2020-12-08 19:52:52 +00:00
Ruben Verborgh
04a91858c2 refactor: Split off ServerInitializer. 2020-12-08 10:19:35 +01:00
Ruben Verborgh
eabe6bc4ed feat: Implement --baseUrl flag.
Closes https://github.com/solid/community-server/issues/372
2020-12-01 19:09:52 +01:00
Ruben Verborgh
961662b692 refactor: Components.js supports Record now. 2020-11-30 09:45:39 +01:00
Ruben Verborgh
6b4088723d fix: Add trailing slashes to advertised WebSocket URL. 2020-11-30 00:54:21 +01:00
Ruben Verborgh
fc3942b372 change: Move WebSocketAdvertiser to middleware. 2020-11-30 00:54:21 +01:00
Ruben Verborgh
8dec921c10 feat: Make CorsHandler customizable. 2020-11-30 00:44:19 +01:00
Ruben Verborgh
d6c0f89cf5 feat: Make HeaderHandler customizable. 2020-11-30 00:44:19 +01:00
Ruben Verborgh
023ff80f48 refactor: Separate middleware from Express. 2020-11-30 00:44:18 +01:00
Joachim Van Herwegen
e4183333fd fix: Integrate wrapStreamError to prevent uncaught errors 2020-11-24 11:49:10 +01:00
Ruben Verborgh
59487410b1 feat: Add WebSocket functionality to server. 2020-11-20 15:39:37 +01:00
Ruben Verborgh
e39e7963eb refactor: Add ExpressHttpServerFactory. 2020-11-20 15:12:04 +01:00
Ruben Taelman
db9aefe551 feature: add level-based logger methods for convenience 2020-09-23 10:04:31 +02:00
Ruben Taelman
6212c15352 change: log messages in ExpressHttpServer 2020-09-23 10:04:31 +02:00
Joachim Van Herwegen
9657fbafb1 refactor: Update eslint related dependencies 2020-09-17 11:55:49 +02:00
Ruben Verborgh
4965b476c9 feat: Send server identification 2020-09-02 16:33:20 +02:00
Ruben Verborgh
273626a799 fix: Ensure main handler ends 2020-09-02 16:33:20 +02:00
Ruben Taelman
48740e5cba style: improve linting of imports
A new plugin is used that offers autofixing capabilities.
2020-08-26 13:20:19 +02:00
Joachim Van Herwegen
dcff424f58 fix: Enable strict TypeScript settings 2020-07-24 13:30:34 +02:00
Joachim Van Herwegen
b93a77c11b fix: Use content-type text/plain for errors 2020-07-23 11:17:53 +02:00
Joachim Van Herwegen
ccd3f1738c fix: Prevent server from crashing if requested data can't be handled 2020-07-17 11:41:46 +02:00
Joachim Van Herwegen
a9dc59bf78 feat: Set up server using express 2020-07-15 10:59:45 +02:00
Joachim Van Herwegen
618005675f feat: add simple response writer 2020-06-24 14:08:56 +02:00
Joachim Van Herwegen
4229932a3a feat: add CompositeAsyncHandler to support multiple handlers 2020-06-05 09:51:48 +02:00
Joachim Van Herwegen
a4f2b3995c feat: add additional supported interfaces
This includes the relevant auth headers and a simplification of several others.
2020-05-25 11:27:23 +02:00
Joachim Van Herwegen
f8e136cadb refactor: support inrupt coding standards 2020-05-25 10:07:38 +02:00