Set stores the key-value pair in the carrier's outgoing context metadata. If the key already exists, given value is appended to the last.
(key, value string)
| 107 | // |
| 108 | // If the key already exists, given value is appended to the last. |
| 109 | func (c *OutgoingCarrier) Set(key, value string) { |
| 110 | c.ctx = metadata.AppendToOutgoingContext(c.ctx, key, value) |
| 111 | } |
| 112 | |
| 113 | // Keys returns the keys stored in the carrier's context metadata. It returns |
| 114 | // keys from outgoing context metadata. |