koatty_core
Advanced tools
Comparing version 1.10.0-18 to 1.10.0-19
@@ -5,2 +5,4 @@ # Changelog | ||
## [1.10.0-19](https://github.com/koatty/koatty_core/compare/v1.10.0-18...v1.10.0-19) (2024-11-11) | ||
## [1.10.0-18](https://github.com/koatty/koatty_core/compare/v1.10.0-17...v1.10.0-18) (2024-11-11) | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2024-11-11 12:18:43 | ||
* @Date: 2024-11-11 13:44:47 | ||
* @License: BSD (3-Clause) | ||
@@ -255,3 +255,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
*/ | ||
createContext(req: RequestType, res: ResponseType, protocol?: KoattyProtocol): any; | ||
createContext(req: RequestType, res: ResponseType, protocol?: string): any; | ||
/** | ||
@@ -274,3 +274,3 @@ * listening and start server | ||
*/ | ||
callback(protocol?: KoattyProtocol, reqHandler?: (ctx: KoattyContext) => Promise<any>): (req: RequestType, res: ResponseType) => Promise<any>; | ||
callback(protocol?: string, reqHandler?: (ctx: KoattyContext) => Promise<any>): (req: RequestType, res: ResponseType) => Promise<any>; | ||
/** | ||
@@ -353,3 +353,3 @@ * Handle request in callback. | ||
*/ | ||
readonly createContext: (req: any, res: any, protocol?: KoattyProtocol) => KoattyContext; | ||
readonly createContext: (req: any, res: any, protocol?: string) => KoattyContext; | ||
/** | ||
@@ -367,3 +367,3 @@ * Listening and start server | ||
*/ | ||
readonly callback: (protocol?: KoattyProtocol, reqHandler?: (ctx: KoattyContext) => Promise<any>) => { | ||
readonly callback: (protocol?: string, reqHandler?: (ctx: KoattyContext) => Promise<any>) => { | ||
(req: RequestType, res: ResponseType): Promise<any>; | ||
@@ -529,15 +529,2 @@ }; | ||
/** | ||
* @description: koatty server protocol | ||
* @return {*} | ||
*/ | ||
export declare enum KoattyProtocol { | ||
HTTP = "http", | ||
HTTPS = "https", | ||
HTTP2 = "http2", | ||
GRPC = "grpc", | ||
WS = "ws", | ||
WSS = "wss" | ||
} | ||
/** | ||
* Router interface | ||
@@ -544,0 +531,0 @@ * |
{ | ||
"name": "koatty_core", | ||
"version": "1.10.0-18", | ||
"version": "1.10.0-19", | ||
"description": "Koatty framework core", | ||
@@ -5,0 +5,0 @@ "scripts": { |
{ | ||
"name": "koatty_core", | ||
"version": "1.10.0-18", | ||
"version": "1.10.0-19", | ||
"description": "Koatty framework core", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
187480
4362