Skip to content

Commit bfbd44c

Browse files
committed
💄
1 parent 15d9025 commit bfbd44c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/vs/platform/request/common/request.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,24 @@ import { VSBufferReadableStream, streamToBuffer } from 'vs/base/common/buffer';
1212

1313
export const IRequestService = createDecorator<IRequestService>('requestService');
1414

15+
export interface IHeaders {
16+
[header: string]: string;
17+
}
18+
1519
export interface IRequestOptions {
1620
type?: string;
1721
url?: string;
1822
user?: string;
1923
password?: string;
20-
headers?: any;
24+
headers?: IHeaders;
2125
timeout?: number;
2226
data?: string;
2327
followRedirects?: number;
2428
}
2529

2630
export interface IRequestContext {
27-
// req: http.ClientRequest;
28-
// res: http.ClientResponse;
2931
res: {
30-
headers: { [n: string]: string };
32+
headers: IHeaders;
3133
statusCode?: number;
3234
};
3335
stream: VSBufferReadableStream;

0 commit comments

Comments
 (0)