MCPcopy Create free account
hub / github.com/go-json-experiment/json / Example_serveHTTP

Function Example_serveHTTP

example_test.go:333–359  ·  view source on GitHub ↗

When implementing HTTP endpoints, it is common to be operating with an [io.Reader] and an [io.Writer]. The [MarshalWrite] and [UnmarshalRead] functions assist in operating on such input/output types. [UnmarshalRead] reads the entirety of the [io.Reader] to ensure that [io.EOF] is encountered without

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

UnmarshalReadFunction · 0.92
MarshalWriteFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…