Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TextMapSetter<Carrier>

A setter is specified by the caller to define a specific method to set key/value pairs on the carrier within a propagator

since

1.0.0

Type Parameters

  • Carrier = any

Hierarchy

  • TextMapSetter

Index

Methods

Methods

  • set(carrier: Carrier, key: string, value: string): void
  • Callback used to set a key/value pair on an object.

    Should be called by the propagator each time a key/value pair should be set, and should set that key/value pair on the propagator.

    Parameters

    • carrier: Carrier

      object or class which carries key/value pairs

    • key: string

      string key to modify

    • value: string

      value to be set to the key on the carrier

    Returns void

Generated using TypeDoc