MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / NewEncoder

Method NewEncoder

runtime/marshaler.go:17–17  ·  view source on GitHub ↗

NewEncoder returns an Encoder which writes bytes sequence into "w".

(w io.Writer)

Source from the content-addressed store, hash-verified

15 NewDecoder(r io.Reader) Decoder
16 // NewEncoder returns an Encoder which writes bytes sequence into "w".
17 NewEncoder(w io.Writer) Encoder
18 // ContentType returns the Content-Type which this marshaler is responsible for.
19 // The parameter describes the type which is being marshalled, which can sometimes
20 // affect the content type returned.

Callers 13

TestFormatEncodeFunction · 0.65
toYAMLNodeMethod · 0.65
encodeOpenAPIFunction · 0.65
NewEncoderMethod · 0.65
WithHealthEndpointAtFunction · 0.65
NewEncoderMethod · 0.65
NewEncoderMethod · 0.65
setBodyFunction · 0.65
setBodyFunction · 0.65
setBodyFunction · 0.65
setBodyFunction · 0.65

Implementers 4

ProtoMarshallerruntime/marshal_proto.go
JSONPbruntime/marshal_jsonpb.go
JSONBuiltinruntime/marshal_json.go
CustomMarshalerruntime/handler_test.go

Calls

no outgoing calls

Tested by 3

TestFormatEncodeFunction · 0.52
NewEncoderMethod · 0.52