- Consolidates `Handler` and `Middleware` types under `Types` module - Replaces `IHandler` and `IMiddleware` interfaces with typed functions - Simplifies imports and improves code organization - Enhances debugging with named handlers and middlewares
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
// deno-coverage-ignore-file
|
|
|
|
export type { DeepPartial } from './DeepPartial.ts';
|
|
export { isHandler } from './Handler.ts';
|
|
export type { Handler } from './Handler.ts';
|
|
export type { HttpErrorHandler } from './HttpErrorHandler.ts';
|
|
export { isHttpMethod, validHttpMethods } from './HttpMethod.ts';
|
|
export type { HttpMethod } from './HttpMethod.ts';
|
|
export {
|
|
HTTP_100_CONTINUE,
|
|
HTTP_101_SWITCHING_PROTOCOLS,
|
|
HTTP_102_PROCESSING,
|
|
HTTP_200_OK,
|
|
HTTP_201_CREATED,
|
|
HTTP_202_ACCEPTED,
|
|
HTTP_204_NO_CONTENT,
|
|
HTTP_301_MOVED_PERMANENTLY,
|
|
HTTP_302_FOUND,
|
|
HTTP_304_NOT_MODIFIED,
|
|
HTTP_400_BAD_REQUEST,
|
|
HTTP_401_UNAUTHORIZED,
|
|
HTTP_403_FORBIDDEN,
|
|
HTTP_404_NOT_FOUND,
|
|
HTTP_405_METHOD_NOT_ALLOWED,
|
|
HTTP_409_CONFLICT,
|
|
HTTP_422_UNPROCESSABLE_ENTITY,
|
|
HTTP_429_TOO_MANY_REQUESTS,
|
|
HTTP_500_INTERNAL_SERVER_ERROR,
|
|
HTTP_501_NOT_IMPLEMENTED,
|
|
HTTP_502_BAD_GATEWAY,
|
|
HTTP_503_SERVICE_UNAVAILABLE,
|
|
HTTP_504_GATEWAY_TIMEOUT,
|
|
HttpStatusTextMap,
|
|
isHttpStatusCode,
|
|
validHttpErrorCodes,
|
|
validHttpStatusCodes,
|
|
} from './HttpStatusCode.ts';
|
|
export type { HttpStatusCode } from './HttpStatusCode.ts';
|
|
export { isMiddleware } from './Middleware.ts';
|
|
export type { Middleware } from './Middleware.ts';
|
|
export type { Params } from './Params.ts';
|
|
export type { Query } from './Query.ts';
|
|
export type { RegisterRoute } from './RegisterRoute.ts';
|
|
export type { ResponseDecorator } from './ResponseDecorator.ts';
|
|
export type { State } from './State.ts';
|