base.d.ts 787 B

123456789101112131415161718192021222324252627282930
  1. export class BaseResponse {
  2. /**
  3. * Returns whether the response has an ok'ish status code
  4. */
  5. get ok(): boolean;
  6. /**
  7. * Returns the status code of the response
  8. */
  9. get status(): void;
  10. /**
  11. * Returns the value of the specified header
  12. * @param {string} headerName the header name
  13. * @returns {string} the header value
  14. */
  15. getHeader(headerName: string): string;
  16. /**
  17. * @returns {ArrayBuffer} the response data of the request
  18. */
  19. getData(): ArrayBuffer;
  20. }
  21. export class BaseClient {
  22. constructor(url: any);
  23. url: any;
  24. /**
  25. * Send a request with the options
  26. * @param {object} [options]
  27. */
  28. request({ headers, credentials, signal }?: object): Promise<void>;
  29. }
  30. //# sourceMappingURL=base.d.ts.map