Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpServerOption<K, V>

Type parameters

  • K

  • V

Hierarchy

Index

Properties

Readonly size

size: number

Methods

clear

  • clear(): void
  • Returns void

delete

  • delete(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

forEach

  • forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void
  • Parameters

    • callbackfn: (value: V, key: K, map: Map<K, V>) => void
        • (value: V, key: K, map: Map<K, V>): void
        • Parameters

          • value: V
          • key: K
          • map: Map<K, V>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get<K>(key: K): ServerOptions[K]
  • Type parameters

    • K: keyof ServerOptions

    Parameters

    • key: K

    Returns ServerOptions[K]

has

  • has(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

set

  • set<K, V>(key: K, value: V): this
  • Type parameters

    • K: keyof ServerOptions

    • V: ServerOptions[K]

    Parameters

    • key: K
    • value: V

    Returns this

stringify

  • stringify(space?: number): string
  • Parameters

    • Default value space: number = 0

    Returns string

toJSONObject

Static create

  • Parameters

    • Default value options: ServerOptions = {}

    Returns HttpServerOption

Static toJSONObject

  • toJSONObject<T, O>(objectedMap: O): JSONObject<T>

Generated using TypeDoc