MCPcopy
hub / github.com/facebook/react / Response

Class Response

flow-typed/environments/bom.js:1739–1763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1737};
1738
1739declare class Response {
1740 constructor(input?: ?BodyInit, init?: ResponseOptions): void;
1741 clone(): Response;
1742 static error(): Response;
1743 static redirect(url: string, status?: number): Response;
1744
1745 redirected: boolean;
1746 type: ResponseType;
1747 url: string;
1748 ok: boolean;
1749 status: number;
1750 statusText: string;
1751 headers: Headers;
1752 trailer: Promise<Headers>;
1753
1754 // Body methods and attributes
1755 bodyUsed: boolean;
1756 body: ?ReadableStream;
1757
1758 arrayBuffer(): Promise<ArrayBuffer>;
1759 blob(): Promise<Blob>;
1760 formData(): Promise<FormData>;
1761 json(): Promise<any>;
1762 text(): Promise<string>;
1763}
1764
1765declare class Request {
1766 constructor(input: RequestInfo, init?: RequestOptions): void;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected