refactor: Split off ErrorResponseWriter

This commit is contained in:
Joachim Van Herwegen
2020-10-26 12:05:39 +01:00
parent f4161d406c
commit e8fdcb0ad0
18 changed files with 150 additions and 72 deletions

View File

@@ -2,7 +2,6 @@ import type { HttpHandler,
ResourceStore } from '../../index';
import {
AuthenticatedLdpHandler,
BasicResponseWriter,
CompositeAsyncHandler,
MethodPermissionsExtractor,
RdfToQuadConverter,
@@ -16,6 +15,7 @@ import {
getBasicRequestParser,
getOperationHandler,
getWebAclAuthorizer,
getResponseWriter,
} from './Util';
/**
@@ -46,7 +46,7 @@ export class BasicHandlersWithAclConfig implements ServerConfig {
const operationHandler = getOperationHandler(this.store);
const responseWriter = new BasicResponseWriter();
const responseWriter = getResponseWriter();
const authorizer = getWebAclAuthorizer(this.store);
const handler = new AuthenticatedLdpHandler({