feat: add AuthenticatedLdpHandler

This commit is contained in:
Joachim Van Herwegen
2020-05-28 10:59:06 +02:00
parent 4229932a3a
commit 3e2cfaf11e
3 changed files with 202 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { AsyncHandler } from '../../util/AsyncHandler';
import { HttpResponse } from '../../server/HttpResponse';
import { Operation } from '../operations/Operation';
/**
* Writes to the HttpResponse.
* Response depends on the operation result and potentially which errors was thrown.
*/
export type ResponseWriter = AsyncHandler<{ response: HttpResponse; operation: Operation; error?: Error }>;