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

Method marshalSFV

item.go:26–36  ·  view source on GitHub ↗

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

(b *strings.Builder)

Source from the content-addressed store, hash-verified

24// marshalSFV serializes as defined in
25// https://httpwg.org/specs/rfc9651.html#ser-item.
26func (i Item) marshalSFV(b *strings.Builder) error {
27 if i.Value == nil {
28 return ErrInvalidBareItem
29 }
30
31 if err := marshalBareItem(b, i.Value); err != nil {
32 return err
33 }
34
35 return i.Params.marshalSFV(b)
36}
37
38// UnmarshalItem parses an item as defined in
39// https://httpwg.org/specs/rfc9651.html#parse-item.

Callers 1

Calls 2

marshalBareItemFunction · 0.85
marshalSFVMethod · 0.65

Tested by 1