MCPcopy Create free account
hub / github.com/goadesign/goa / jsonEncoder

Struct jsonEncoder

http/encoding.go:190–193  ·  view source on GitHub ↗

jsonEncoder implements io.ReadCloser and provides GetBody functionality to support HTTP/2 request retries during server graceful shutdown (GOAWAY).

Source from the content-addressed store, hash-verified

188// jsonEncoder implements io.ReadCloser and provides GetBody functionality
189// to support HTTP/2 request retries during server graceful shutdown (GOAWAY).
190type jsonEncoder struct {
191 b []byte
192 r bytes.Reader
193}
194
195var errEncodeNotCalled = errors.New("RequestEncoder: Encode must be called prior to reading")
196

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected