/** * The Response subclass returned by methods such as HttpClient.fetch(). * * @remarks * This is a placeholder. In the future, additional HttpClient-specific functionality * may be added to this class. * * @privateRemarks * This class exposes the same members as our typings for the browser's native * Response and Body classes, which is why we can say that it "implements" them. * It cannot actually inherit from Response because that class does not have a copy * constructor (because it would probably be inefficient to copy the response stream). * * @public */ export default class HttpClientResponse implements Response, Body { protected nativeResponse: Response; /** * @internal */ constructor(response: Response); /** * This property is marked as alpha because it is not yet implemented by the `@microsoft/sp-polyfills` package. * * @alpha */ get body(): ReadableStream | null; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Body | Body} API */ get bodyUsed(): boolean; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Body | Body} API */ arrayBuffer(): Promise; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Body | Body} API */ blob(): Promise; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Body | Body} API */ formData(): Promise; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Body | Body} API */ json(): Promise; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Body | Body} API */ text(): Promise; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Response | Response} API */ get type(): ResponseType; /** * This property is marked as alpha because it is not yet implemented by the `@microsoft/sp-polyfills` package. * * @alpha */ get redirected(): boolean; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Response | Response} API */ get url(): string; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Response | Response} API */ get status(): number; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Response | Response} API */ get ok(): boolean; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Response | Response} API */ get statusText(): string; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Response | Response} API * * This property is marked as alpha because it is not yet implemented by the `@microsoft/sp-polyfills` package. * * @alpha */ get trailer(): Promise; /** * See documentation for the browser's * {@link https://developer.mozilla.org/en-US/docs/Web/API/Response | Response} API */ get headers(): Headers; /** * @virtual */ clone(): HttpClientResponse; } //# sourceMappingURL=HttpClientResponse.d.ts.map