Mredirect
Bun

method

Response.redirect

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

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