effect-io-ai

Package: @effect/platform
Module: Url

Url.setHostname

Updates the domain of the URL without modifying the port.

Signature

declare const setHostname: { (hostname: string): (url: URL) => URL; (url: URL, hostname: string): URL; }

Source

Since v1.0.0