Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Http2Server

Hierarchy

Index

Constructors

Private constructor

Properties

connections

connections: number

listening

listening: boolean

maxConnections

maxConnections: number

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: "checkContinue", listener: function): this
  • addListener(event: "request", listener: function): this
  • addListener(event: "session", listener: function): this
  • addListener(event: "sessionError", listener: function): this
  • addListener(event: "stream", listener: function): this
  • addListener(event: "timeout", listener: function): this
  • addListener(event: string | symbol, listener: function): this

address

close

  • close(callback?: function): this
  • Parameters

    • Optional callback: function
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns this

emit

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    • event: "sessionError"
    • err: Error

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    • event: "timeout"

    Returns boolean

  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

getConnections

  • getConnections(cb: function): void
  • Parameters

    • cb: function
        • (error: Error | null, count: number): void
        • Parameters

          • error: Error | null
          • count: number

          Returns void

    Returns void

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listen

  • listen(port?: number, hostname?: string, backlog?: number, listeningListener?: function): this
  • listen(port?: number, hostname?: string, listeningListener?: function): this
  • listen(port?: number, backlog?: number, listeningListener?: function): this
  • listen(port?: number, listeningListener?: function): this
  • listen(path: string, backlog?: number, listeningListener?: function): this
  • listen(path: string, listeningListener?: function): this
  • listen(options: ListenOptions, listeningListener?: function): this
  • listen(handle: any, backlog?: number, listeningListener?: function): this
  • listen(handle: any, listeningListener?: function): this
  • Parameters

    • Optional port: number
    • Optional hostname: string
    • Optional backlog: number
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • Optional port: number
    • Optional hostname: string
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • Optional port: number
    • Optional backlog: number
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • Optional port: number
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • path: string
    • Optional backlog: number
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • path: string
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • options: ListenOptions
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • handle: any
    • Optional backlog: number
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • handle: any
    • Optional listeningListener: function
        • (): void
        • Returns void

    Returns this

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: "checkContinue", listener: function): this
  • on(event: "request", listener: function): this
  • on(event: "session", listener: function): this
  • on(event: "sessionError", listener: function): this
  • on(event: "stream", listener: function): this
  • on(event: "timeout", listener: function): this
  • on(event: string | symbol, listener: function): this
  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • event: "sessionError"
    • listener: function
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns this

  • Parameters

    Returns this

  • Parameters

    • event: "timeout"
    • listener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

once

  • once(event: "checkContinue", listener: function): this
  • once(event: "request", listener: function): this
  • once(event: "session", listener: function): this
  • once(event: "sessionError", listener: function): this
  • once(event: "stream", listener: function): this
  • once(event: "timeout", listener: function): this
  • once(event: string | symbol, listener: function): this
  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • event: "sessionError"
    • listener: function
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns this

  • Parameters

    Returns this

  • Parameters

    • event: "timeout"
    • listener: function
        • (): void
        • Returns void

    Returns this

  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependListener

  • prependListener(event: "checkContinue", listener: function): this
  • prependListener(event: "request", listener: function): this
  • prependListener(event: "session", listener: function): this
  • prependListener(event: "sessionError", listener: function): this
  • prependListener(event: "stream", listener: function): this
  • prependListener(event: "timeout", listener: function): this
  • prependListener(event: string | symbol, listener: function): this

prependOnceListener

  • prependOnceListener(event: "checkContinue", listener: function): this
  • prependOnceListener(event: "request", listener: function): this
  • prependOnceListener(event: "session", listener: function): this
  • prependOnceListener(event: "sessionError", listener: function): this
  • prependOnceListener(event: "stream", listener: function): this
  • prependOnceListener(event: "timeout", listener: function): this
  • prependOnceListener(event: string | symbol, listener: function): this

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

ref

  • ref(): this
  • Returns this

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

setTimeout

  • setTimeout(msec?: number, callback?: function): this
  • Parameters

    • Optional msec: number
    • Optional callback: function
        • (): void
        • Returns void

    Returns this

unref

  • unref(): this
  • Returns this

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc