You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					28 lines
				
				894 B
			
		
		
			
		
	
	
					28 lines
				
				894 B
			| 
											3 years ago
										 | /// <reference types="node" />
 | ||
|  | import http from 'http'; | ||
|  | import https from 'https'; | ||
|  | import { Readable } from 'stream'; | ||
|  | import { UrlWithStringQuery } from 'url'; | ||
|  | import { GetUriOptions } from '.'; | ||
|  | declare type HttpOrHttpsModule = typeof http | typeof https; | ||
|  | export interface HttpReadableProps { | ||
|  |     date?: number; | ||
|  |     parsed?: UrlWithStringQuery; | ||
|  |     redirects?: HttpReadable[]; | ||
|  | } | ||
|  | export interface HttpReadable extends Readable, HttpReadableProps { | ||
|  | } | ||
|  | export interface HttpIncomingMessage extends http.IncomingMessage, HttpReadableProps { | ||
|  | } | ||
|  | export interface HttpOptions extends GetUriOptions, https.RequestOptions { | ||
|  |     cache?: HttpReadable; | ||
|  |     http?: HttpOrHttpsModule; | ||
|  |     redirects?: HttpReadable[]; | ||
|  |     maxRedirects?: number; | ||
|  | } | ||
|  | /** | ||
|  |  * Returns a Readable stream from an "http:" URI. | ||
|  |  */ | ||
|  | export default function get(parsed: UrlWithStringQuery, opts: HttpOptions): Promise<Readable>; | ||
|  | export {}; |