MCPcopy
hub / github.com/grpc/grpc-go / SetContext

Method SetContext

internal/transport/server_stream.go:123–125  ·  view source on GitHub ↗

SetContext sets the context of the stream. This will be deleted once the stats handler callouts all move to gRPC layer.

(ctx context.Context)

Source from the content-addressed store, hash-verified

121// SetContext sets the context of the stream. This will be deleted once the
122// stats handler callouts all move to gRPC layer.
123func (s *ServerStream) SetContext(ctx context.Context) {
124 s.ctx = ctx
125}
126
127// ClientAdvertisedCompressors returns the compressor names advertised by the
128// client via grpc-accept-encoding header.

Callers 1

handleStreamMethod · 0.80

Implementers 1

serverStreamstream.go

Calls

no outgoing calls

Tested by

no test coverage detected