Networking
Response API
Construct synthetic HTTP Response instances with custom status codes and streams.
Checking support...
Feature Not SupportedThis browser does not support the Response API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
const res = new Response('Hello World', { status: 200, headers: { 'X-Custom': 'Value' } });About the Response API Web API
Response interface represents the response to a request in the Fetch API.
Specification:W3C & WHATWG Web API Standard
Sponsored Content