版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

19 строки
545 B

  1. import IRequestInit from './IRequestInit';
  2. import IDocument from '../nodes/document/IDocument';
  3. import IResponse from './IResponse';
  4. import RequestInfo from './RequestInfo';
  5. /**
  6. * Helper class for performing fetch.
  7. */
  8. export default class FetchHandler {
  9. /**
  10. * Returns resource data asynchronously.
  11. *
  12. * @param document Document.
  13. * @param url URL to resource.
  14. * @param [init] Init.
  15. * @returns Response.
  16. */
  17. static fetch(document: IDocument, url: RequestInfo, init?: IRequestInit): Promise<IResponse>;
  18. }