fixed
parent
48803cebfc
commit
cfb8c7d553
|
@ -1,9 +1,9 @@
|
|||
import { ServerRequest, ServerResponse } from 'http'
|
||||
import { IncomingMessage, ServerResponse } from 'http'
|
||||
|
||||
export default class Response {
|
||||
status: number
|
||||
|
||||
constructor(req: ServerRequest, res: ServerResponse)
|
||||
constructor(req: IncomingMessage, res: ServerResponse)
|
||||
|
||||
get ended(): boolean
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@gm5/response",
|
||||
"version": "2.1.2",
|
||||
"version": "2.1.3",
|
||||
"type": "module",
|
||||
"description": "对Http的response进一步封装, 提供常用的API",
|
||||
"main": "index.js",
|
||||
|
|
Loading…
Reference in New Issue