MCPcopy
hub / github.com/payloadcms/payload / Response

Interface Response

templates/with-cloudflare-d1/cloudflare-env.d.ts:1824–1875  ·  view source on GitHub ↗

* The **`Response`** interface of the Fetch API represents the response to a request. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)

Source from the content-addressed store, hash-verified

1822 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
1823 */
1824interface Response extends Body {
1825 /**
1826 * The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
1827 *
1828 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)
1829 */
1830 clone(): Response
1831 /**
1832 * The **`status`** read-only property of the Response interface contains the HTTP status codes of the response.
1833 *
1834 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
1835 */
1836 status: number
1837 /**
1838 * The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
1839 *
1840 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
1841 */
1842 statusText: string
1843 /**
1844 * The **`headers`** read-only property of the with the response.
1845 *
1846 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
1847 */
1848 headers: Headers
1849 /**
1850 * The **`ok`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
1851 *
1852 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
1853 */
1854 ok: boolean
1855 /**
1856 * The **`redirected`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
1857 *
1858 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
1859 */
1860 redirected: boolean
1861 /**
1862 * The **`url`** read-only property of the Response interface contains the URL of the response.
1863 *
1864 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
1865 */
1866 url: string
1867 webSocket: WebSocket | null
1868 cf: any | undefined
1869 /**
1870 * The **`type`** read-only property of the Response interface contains the type of the response.
1871 *
1872 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
1873 */
1874 type: 'default' | 'error'
1875}
1876interface ResponseInit {
1877 status?: number
1878 statusText?: string

Callers

nothing calls this directly

Implementers 14

LinkNodepackages/richtext-lexical/src/features
AutoLinkNodepackages/richtext-lexical/src/features
RelationshipNodepackages/richtext-lexical/src/features
RelationshipServerNodepackages/richtext-lexical/src/features
InlineBlockNodepackages/richtext-lexical/src/features
BlockNodepackages/richtext-lexical/src/features
ServerInlineBlockNodepackages/richtext-lexical/src/features
ServerBlockNodepackages/richtext-lexical/src/features
HorizontalRuleNodepackages/richtext-lexical/src/features
HorizontalRuleServerNodepackages/richtext-lexical/src/features
UnknownConvertedNodepackages/richtext-lexical/src/features
UnknownConvertedNodepackages/richtext-lexical/src/features

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…