mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
11 lines
440 B
TypeScript
11 lines
440 B
TypeScript
import { AsyncHandler } from '../../util/AsyncHandler';
|
|
import { HttpResponse } from '../../server/HttpResponse';
|
|
import { ResponseDescription } from '../operations/ResponseDescription';
|
|
|
|
/**
|
|
* Writes to the HttpResponse.
|
|
* Response depends on the operation result and potentially which errors was thrown.
|
|
*/
|
|
export abstract class ResponseWriter
|
|
extends AsyncHandler<{ response: HttpResponse; result: ResponseDescription | Error }> {}
|