redirect

Bun

Symbol

Response.redirect

static redirect(url: string | URL, status?: number): Response

Referenced types

class URL

The URL interface represents an object providing static methods used for creating object URLs.

MDN Reference

class Response

This Fetch API interface represents the response to a request.

MDN Reference