MCPcopy Create free account
hub / github.com/fastify/fastify / get

Function get

fastify.js:289–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 Object.defineProperties(fastify, {
288 listeningOrigin: {
289 get () {
290 const address = this.addresses().slice(-1).pop()
291 /* ignore if windows: unix socket is not testable on Windows platform */
292 /* c8 ignore next 3 */
293 if (typeof address === 'string') {
294 return address
295 }
296 const host = address.family === 'IPv6' ? `[${address.address}]` : address.address
297 return `${this[kOptions].https ? 'https' : 'http'}://${host}:${address.port}`
298 }
299 },
300 pluginName: {
301 configurable: true,

Callers

nothing calls this directly

Calls 3

addressesMethod · 0.80
getValidatorCompilerMethod · 0.80
getSerializerCompilerMethod · 0.80

Tested by

no test coverage detected