(address: Server.Address)
| 132 | |
| 133 | /** @internal */ |
| 134 | export 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 */ |
| 144 | export const addressWith = <A, E, R>( |
no outgoing calls
no test coverage detected