MCPcopy Index your code
hub / github.com/Effect-TS/effect / formatAddress

Function formatAddress

packages/platform/src/internal/httpServer.ts:134–141  ·  view source on GitHub ↗
(address: Server.Address)

Source from the content-addressed store, hash-verified

132
133/** @internal */
134export const formatAddress = (address: Server.Address): string => {
135 switch (address._tag) {
136 case "UnixAddress":
137 return `unix://${address.path}`
138 case "TcpAddress":
139 return `http://${address.hostname}:${address.port}`
140 }
141}
142
143/** @internal */
144export const addressWith = <A, E, R>(

Callers 1

addressFormattedWithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected