Interface TextMapGetter<Carrier>

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

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

Type Parameters

  • Carrier = any

Methods

Methods

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

    Parameters

    Returns string | string[]

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

    Parameters

    Returns string[]