forked from kzahel/web-server-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chromesocketxhr.d.ts
53 lines (53 loc) · 1.33 KB
/
chromesocketxhr.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { IOStream } from "./stream";
export declare class ChromeSocketXMLHttpRequest {
chunks: any;
responseDataParsed: {
code: any;
status: any;
proto: any;
headers: {};
};
ui8IndexOf(arr: any, s: any, startIndex: any): any;
onload: any;
_finished: boolean;
onerror: any;
opts: any;
timedOut: boolean;
timeout: number;
timeoutId: any;
stream: IOStream;
connecting: boolean;
writing: boolean;
haderror: boolean;
closed: boolean;
sockInfo: any;
responseType: any;
extraHeaders: {};
headersReceived: boolean;
responseHeaders: any;
responseHeadersParsed: any;
responseBody: any;
responseLength: any;
responseBytesRead: any;
requestBody: any;
secured: boolean;
uri: any;
ontimeout: any;
constructor();
open(method: any, url: any, async: any): void;
setRequestHeader(key: any, val: any): void;
cancel(): void;
send(data: any): void;
createRequestHeaders(): string;
checkTimeout(): void;
error(data: any): void;
onStreamClose(evt: any): void;
onCreate(sockInfo: any): void;
onConnect(result: any): void;
getHost(): any;
getPort(): number;
onHeaders(data: any): void;
onChunkDone(data: any): void;
getNewChunk(data: any): void;
onBody(body: any): void;
}