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

@@ -3,7 +3,6 @@ import type { HttpHandler,
import {
AllowEverythingAuthorizer,
AuthenticatedLdpHandler,
BasicResponseWriter,
CompositeAsyncHandler,
MethodPermissionsExtractor,
QuadToRdfConverter,
@@ -21,6 +20,7 @@ import {
getConvertingStore,
getPatchingStore,
getBasicRequestParser,
getResponseWriter,
} from './Util';
/**
@@ -56,7 +56,7 @@ export class BasicHandlersConfig implements ServerConfig {
const operationHandler = getOperationHandler(this.store);
const responseWriter = new BasicResponseWriter();
const responseWriter = getResponseWriter();
const handler = new AuthenticatedLdpHandler({
requestParser,