feat: refact recorder.js into TS

This commit is contained in:
砚然
2018-08-28 20:36:44 +08:00
parent 5bf6a55323
commit 4497160284
4 changed files with 148 additions and 83 deletions

3
typings/index.d.ts vendored
View File

@@ -38,11 +38,14 @@ declare namespace AnyProxyRecorder {
statusCode?: number,
resHeader?: ResponseHeader,
host?: string,
protocol?: string,
method?: string,
path?: string,
url?: string,
startTime?: number,
endTime?: number,
req?: any,
reqBody?: string,
res?: {
statusCode: number,
headers: ResponseHeader