Response.prototype.url

The URL of the response as a string.

Syntax

url

Examples

fetch('https://example.com').then(r => print(r.url))
https://example.com/