File tree Expand file tree Collapse file tree 5 files changed +39
-8
lines changed Expand file tree Collapse file tree 5 files changed +39
-8
lines changed Original file line number Diff line number Diff line change 1
1
/node_modules /
2
2
* .js
3
3
* .js.map
4
+ * .d.ts
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Represents an HTTP message with headers and an optional static or streaming
3
+ * body.
4
+ */
5
+ export interface HttpMessage < StreamType = Uint8Array > {
6
+ headers : { [ key : string ] : Array < string > } ;
7
+ body ?: ArrayBuffer | ArrayBufferView | string | StreamType ;
8
+ }
9
+
10
+ /**
11
+ * Represents an HTTP message constructed to be sent to a host. Contains
12
+ * addressing information in addition to standard message properties.
13
+ */
14
+ export interface HttpRequest < StreamType = Uint8Array > extends
15
+ HttpMessage < StreamType >
16
+ {
17
+ method : string ;
18
+ protocol : string ;
19
+ hostname : string ;
20
+ port : number ;
21
+ path : string ;
22
+ query ?: { [ key : string ] : string | Array < string > } ;
23
+ }
24
+
25
+ /**
26
+ * Represents an HTTP message as received in reply to a request. Contains a
27
+ * numeric status code in addition to standard message properties.
28
+ */
29
+ export interface HttpResponse < StreamType = Uint8Array > extends
30
+ HttpMessage < StreamType >
31
+ {
32
+ statusCode : number ;
33
+ }
Original file line number Diff line number Diff line change 1
1
export * from './credentials' ;
2
+ export * from './http' ;
2
3
export * from './protocol' ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export interface Member {
18
18
xmlNamespace ?: XmlNamespace ;
19
19
}
20
20
21
- interface Shape {
21
+ export interface Shape {
22
22
type : SerializationType ;
23
23
sensitive ?: boolean ;
24
24
}
Original file line number Diff line number Diff line change 1
1
{
2
- "compileOnSave" : true ,
3
2
"compilerOptions" : {
4
3
"module" : " commonjs" ,
5
4
"target" : " es5" ,
6
- "alwaysStrict" : true ,
7
- "strictNullChecks" : true ,
8
- "noImplicitAny" : true ,
5
+ "strict" : true ,
9
6
"sourceMap" : true ,
10
- "noImplicitThis" : true
11
- },
12
- "exclude" : [" node_modules" ]
7
+ "declaration" : true
8
+ }
13
9
}
You can’t perform that action at this time.
0 commit comments