MCPcopy
hub / github.com/fastify/fastify / get

Function get

fastify.js:287–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

addressesMethod · 0.80
getValidatorCompilerMethod · 0.80
getSerializerCompilerMethod · 0.80

Tested by

no test coverage detected