Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NodeHttp2Handler

Implements

Index

Constructors

constructor

  • new NodeHttp2Handler(__namedParameters?: { disableConcurrentStreams: boolean; requestTimeout: number; sessionTimeout: number }): NodeHttp2Handler

Properties

Private Optional Readonly disableConcurrentStreams

disableConcurrentStreams: boolean

Private Optional Readonly requestTimeout

requestTimeout: number

Private sessionCache

sessionCache: Map<string, ClientHttp2Session[]>

Private Optional Readonly sessionTimeout

sessionTimeout: number

Methods

Private deleteSessionFromCache

  • deleteSessionFromCache(authority: string, session: ClientHttp2Session): void

destroy

  • destroy(): void

Private destroySession

  • destroySession(session: ClientHttp2Session): void

Private getSession

  • getSession(authority: string, disableConcurrentStreams: boolean): ClientHttp2Session
  • Returns a session for the given URL.

    Parameters

    • authority: string

      The URL to create a session for.

    • disableConcurrentStreams: boolean

      If true, a new session will be created for each request.

    Returns ClientHttp2Session

    A session for the given URL.

handle

Object literals

Readonly metadata

metadata: object

handlerProtocol

handlerProtocol: string = "h2"