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

Method ClientAdvertisedCompressors

internal/transport/server_stream.go:129–135  ·  view source on GitHub ↗

ClientAdvertisedCompressors returns the compressor names advertised by the client via grpc-accept-encoding header.

()

Source from the content-addressed store, hash-verified

127// ClientAdvertisedCompressors returns the compressor names advertised by the
128// client via grpc-accept-encoding header.
129func (s *ServerStream) ClientAdvertisedCompressors() []string {
130 values := strings.Split(s.clientAdvertisedCompressors, ",")
131 for i, v := range values {
132 values[i] = strings.TrimSpace(v)
133 }
134 return values
135}
136
137// Header returns the header metadata of the stream. It returns the out header
138// after t.WriteHeader is called. It does not block and must not be called

Callers 2

SetSendCompressorFunction · 0.80

Implementers 1

serverStreamstream.go

Calls

no outgoing calls

Tested by

no test coverage detected