A getter is specified by the caller to define a specific method to get the value of a key from a carrier.

1.0.0

interface TextMapGetter<Carrier = any> {
    get(carrier: Carrier, key: string): undefined | string | string[];
    keys(carrier: Carrier): string[];
}

Type Parameters

  • Carrier = any

Methods

Methods

  • Get the value of a specific key from the carrier.

    Parameters

    Returns undefined | string | string[]

  • Get a list of all keys available on the carrier.

    Parameters

    Returns string[]

MMNEPVFCICPMFPCPTTAAATR