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

@@ -6,7 +6,6 @@ import type {
import {
AllowEverythingAuthorizer,
AuthenticatedLdpHandler,
BasicResponseWriter,
CompositeAsyncHandler,
MethodPermissionsExtractor,
QuadToRdfConverter,
@@ -20,6 +19,7 @@ import {
getConvertingStore,
getBasicRequestParser,
getDataAccessorStore,
getResponseWriter,
} from './Util';
/**
@@ -50,7 +50,7 @@ export class DataAccessorBasedConfig implements ServerConfig {
const authorizer = new AllowEverythingAuthorizer();
const operationHandler = getOperationHandler(this.store);
const responseWriter = new BasicResponseWriter();
const responseWriter = getResponseWriter();
const handler = new AuthenticatedLdpHandler({
requestParser,