mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: add AuthenticatedLdpHandler
This commit is contained in:
9
src/ldp/http/ResponseWriter.ts
Normal file
9
src/ldp/http/ResponseWriter.ts
Normal 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 }>;
|
||||
Reference in New Issue
Block a user