mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: add request parsing related interfaces
This commit is contained in:
5
src/ldp/http/BodyParser.ts
Normal file
5
src/ldp/http/BodyParser.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { AsyncHandler } from '../../util/AsyncHandler';
|
||||
import { HttpRequest } from '../../server/HttpRequest';
|
||||
import { Representation } from '../representation/Representation';
|
||||
|
||||
export abstract class BodyParser extends AsyncHandler<HttpRequest, Representation> {}
|
||||
5
src/ldp/http/PreferenceParser.ts
Normal file
5
src/ldp/http/PreferenceParser.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { AsyncHandler } from '../../util/AsyncHandler';
|
||||
import { HttpRequest } from '../../server/HttpRequest';
|
||||
import { RepresentationPreferences } from '../representation/RepresentationPreferences';
|
||||
|
||||
export abstract class PreferenceParser extends AsyncHandler<HttpRequest, RepresentationPreferences> {}
|
||||
5
src/ldp/http/TargetExtractor.ts
Normal file
5
src/ldp/http/TargetExtractor.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { AsyncHandler } from '../../util/AsyncHandler';
|
||||
import { HttpRequest } from '../../server/HttpRequest';
|
||||
import { ResourceIdentifier } from '../representation/ResourceIdentifier';
|
||||
|
||||
export abstract class TargetExtractor extends AsyncHandler<HttpRequest, ResourceIdentifier> {}
|
||||
Reference in New Issue
Block a user