MCPcopy Index your code
hub / github.com/dunglas/httpsfv / marshalKey

Function marshalKey

key.go:48–56  ·  view source on GitHub ↗

marshalKey serializes as defined in https://httpwg.org/specs/rfc9651.html#ser-key.

(b io.StringWriter, k string)

Source from the content-addressed store, hash-verified

46// marshalKey serializes as defined in
47// https://httpwg.org/specs/rfc9651.html#ser-key.
48func marshalKey(b io.StringWriter, k string) error {
49 if err := checkKey(k); err != nil {
50 return err
51 }
52
53 _, err := b.WriteString(k)
54
55 return err
56}
57
58// parseKey parses as defined in
59// https://httpwg.org/specs/rfc9651.html#parse-key.

Callers 3

marshalSFVMethod · 0.85
TestMarshalKeyFunction · 0.85
marshalSFVMethod · 0.85

Calls 1

checkKeyFunction · 0.85

Tested by 1

TestMarshalKeyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…