增加response原生对象属性
parent
cfb8c7d553
commit
1a16c23ced
|
@ -1,9 +1,11 @@
|
||||||
import { IncomingMessage, ServerResponse } from 'http'
|
import { IncomingMessage, ServerResponse } from 'http'
|
||||||
|
|
||||||
export default class Response {
|
export default class Response {
|
||||||
|
constructor(req: IncomingMessage, res: ServerResponse)
|
||||||
|
|
||||||
status: number
|
status: number
|
||||||
|
|
||||||
constructor(req: IncomingMessage, res: ServerResponse)
|
get response(): ServerResponse
|
||||||
|
|
||||||
get ended(): boolean
|
get ended(): boolean
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue