Not TestedTesting not done, may not work properly
Networking

Response API

Construct synthetic HTTP Response instances with custom status codes and streams.

Checking support...
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