Commit Graph

8 Commits

Author SHA1 Message Date
Menghan Li 9d925ce589
examples: metadata (#2500) 2018-12-13 14:45:14 -08:00
Jean de Klerk 08d626137c metadata: provide AppendToOutgoingContext interface (#1794)
- Provide AppendToOutgoingContext interface for imrproved performance
over manually creating md and joining with existing md
- Add benchmarks for old/new approaches

Fixes #1390
2018-02-12 11:10:37 -08:00
TRAVIS ALLEN SALAS COX 39c8c3866d Use `NewOutgoingContext ` in the metadata doc (#1425)
Removed the deprecated `NewContext` from the doc so that the
documentation would match example given in the doc
2017-08-04 13:14:02 -07:00
Mehrdad Afshari 93166a0b0b Canonicalize https://grpc.io as the preferred URL prefix 2017-07-10 16:28:39 -07:00
dfawley 0c1d39df28 Separate incoming and outgoing metadata in context
This will prevent the incoming RPCs' metadata from appearing in outgoing RPCs
unless it is explicitly copied, e.g.:

incomingMD, ok := metadata.FromContext(ctx)
if ok {
  ctx = metadata.NewContext(ctx, incomingMD)
}

Fixes #1148
2017-04-07 11:54:56 -07:00
David Wu e80eaf12f2 correct spelling error for the word suffix 2016-10-03 15:20:24 +08:00
Gyu-Ho Lee c4adca718a Documentation: fix metadata.FromContext example
metadata.FromContext returns additional boolean value.
This fixes the example in metadata documentation.
2016-05-12 11:07:32 -07:00
Menghan Li b60d4e72a1 Add metadata documentation 2016-03-29 11:00:44 -07:00