CommunitySolidServer/src/ldp/http/PreferenceParser.ts
2021-01-11 13:05:56 +01:00

9 lines
442 B
TypeScript

import type { HttpRequest } from '../../server/HttpRequest';
import { AsyncHandler } from '../../util/AsyncHandler';
import type { RepresentationPreferences } from '../representation/RepresentationPreferences';
/**
* Creates {@link RepresentationPreferences} based on the incoming HTTP headers in a {@link HttpRequest}.
*/
export abstract class PreferenceParser extends AsyncHandler<{ request: HttpRequest }, RepresentationPreferences> {}