MCPcopy Create free account
hub / github.com/Effect-TS/effect / formatUrlUnsafe

Function formatUrlUnsafe

packages/effect/src/net/NetAddress.ts:2195–2196  ·  view source on GitHub ↗
(self: IpAddress | SocketAddress, scheme: string = "http")

Source from the content-addressed store, hash-verified

2193 * @since 4.0.0
2194 */
2195export const formatUrlUnsafe = (self: IpAddress | SocketAddress, scheme: string = "http"): string =>
2196 Result.getOrThrow(formatUrl(self, scheme))
2197
2198/**
2199 * Formats a hostname or numeric IP address for use as a URL authority host.

Callers

nothing calls this directly

Calls 1

formatUrlFunction · 0.85

Tested by

no test coverage detected