.
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import type { ServerResponse } from 'http';
|
||||
export declare const middlewareResponse: {
|
||||
noContent(res: ServerResponse): void;
|
||||
badRequest(res: ServerResponse, reason?: string): void;
|
||||
notFound(res: ServerResponse): void;
|
||||
methodNotAllowed(res: ServerResponse): void;
|
||||
internalServerError(res: ServerResponse, error?: unknown): void;
|
||||
json(res: ServerResponse, data: any): void;
|
||||
jsonString(res: ServerResponse, data: string): void;
|
||||
};
|
||||
Reference in New Issue
Block a user