37 Commits

Author SHA1 Message Date
Joachim Van Herwegen
1260c5c14e feat: Store status, body and metadata in ResponseDescription 2020-11-06 09:08:00 +01:00
Joachim Van Herwegen
e8fdcb0ad0 refactor: Split off ErrorResponseWriter 2020-11-06 09:08:00 +01:00
Ruben Verborgh
4b4f737013 chore: Use Jest recommended linting. 2020-11-02 10:03:18 +01:00
Ruben Verborgh
1a45b65df7
refactor: Implement empty canHandle on base class. (#289) 2020-10-30 17:56:39 +01:00
smessie
a7fa61ab2f
fix: Resolve duplicate error message and no trailing newline
* fix: Resolves duplicate error message

* test: Add trailing newline on error test
2020-10-27 15:17:59 +01:00
smessie
99464d9a95
feat: Add logging
* feat: Add logging

* refactor: Configure the logger for the tests once globally

* feat: Add logging

* fix: Fix ESLint errors due to merge conflicts

* Review log and error messages.

* refactor: Cleanup a bit

* refactor: Change to logger info calls

Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2020-10-26 10:31:01 +01:00
Joachim Van Herwegen
e85ca622da fix: Make sure all URI characters are correctly encoded 2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
31844a4f40 feat: Integrate MetadataHandler 2020-10-09 12:12:34 +02:00
Joachim Van Herwegen
7dcb3eaa84 feat: Create MetadataHandler 2020-10-09 12:12:34 +02:00
Joachim Van Herwegen
bb28af937b feat: Decode URI in target extractor 2020-10-07 09:31:08 +02:00
Joachim Van Herwegen
4d34cdd12f fix: Have AsyncHandlers only check what is necessary 2020-10-05 15:32:08 +02:00
Joachim Van Herwegen
9657fbafb1 refactor: Update eslint related dependencies 2020-09-17 11:55:49 +02:00
Joachim Van Herwegen
85df2e5d7f refactor: Make URI constants consistent 2020-09-16 13:18:58 +02:00
Joachim Van Herwegen
8d3979372b refactor: Streamline RepresentationMetadata interface 2020-09-16 12:10:42 +02:00
Joachim Van Herwegen
76319ba360 feat: Update RepresentationMetadata to store triples 2020-09-16 12:10:42 +02:00
Ruben Taelman
0ed1ae539d lint: enable no-extraneous-dependencies rule
This also uses the new `import type` syntax for importing rdf-js types,
as it is required for making this new linter rule pass.

Closes #132
2020-09-07 08:46:08 +02:00
Ruben Verborgh
a06a7ff685 fix: Determine body presence according to RFC7230
Fixes https://github.com/solid/community-server/issues/121
2020-09-03 10:12:16 +02:00
Ruben Verborgh
c5c5d13570 refactor: Replace dataType by binary flag 2020-09-03 09:52:48 +02:00
Joachim Van Herwegen
199d657097 refactor: Remove overused "Simple" prefix 2020-09-02 15:42:13 +02:00
Joachim Van Herwegen
86d5f367d5 feat: Support link and slug headers in SimpleBodyParser 2020-08-27 15:51:07 +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
4bc1dcdd1b fix: Remove duplicate checks
These were added when setting TypeScript settings to strict,
but should not be needed due to how AsyncHandlers should be used.
2020-08-25 15:12:01 +02:00
Joachim Van Herwegen
4403421c49 feat: Integrate data conversion with rest of server 2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
d6a35f9954 fix: Make Patch more consistent with other Representations 2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
14db5fed91 feat: Specifiy constants in separate file 2020-07-28 12:00:17 +02:00
Joachim Van Herwegen
aaba113563 fix: Set max-len to 120 2020-07-24 15:10:34 +02:00
Joachim Van Herwegen
dcff424f58 fix: Enable strict TypeScript settings 2020-07-24 13:30:34 +02:00
Joachim Van Herwegen
95c65c86a7 feat: Add BodyParser for SPARQL updates 2020-07-23 10:55: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
ea788ba406 fix: Throw correct error for invalid triple data 2020-07-17 11:41:46 +02:00
Joachim Van Herwegen
cff9790b6e fix: Take host into account when extracting identifier 2020-07-15 10:59:45 +02:00
Joachim Van Herwegen
9d9f7df5d1 feat: Fully support Accept* headers 2020-07-08 11:20:28 +02:00
Joachim Van Herwegen
618005675f feat: add simple response writer 2020-06-24 14:08:56 +02:00
Joachim Van Herwegen
cf258d0317 feat: add simple request parser 2020-06-17 10:10:32 +02:00
Joachim Van Herwegen
09eb665c12 feat: add simple preference parser 2020-06-17 10:10:32 +02:00
Joachim Van Herwegen
3c8a087615 feat: add simple target extractor 2020-06-17 10:10:32 +02:00
Joachim Van Herwegen
d4f70d9c59 feat: add simple body parser 2020-06-17 10:10:32 +02:00