MCPcopy Index your code
hub / github.com/WICG/webpackage / writePrimaryURL

Function writePrimaryURL

go/bundle/encoder.go:508–511  ·  view source on GitHub ↗
(w io.Writer, url *url.URL)

Source from the content-addressed store, hash-verified

506}
507
508func writePrimaryURL(w io.Writer, url *url.URL) error {
509 enc := cbor.NewEncoder(w)
510 return enc.EncodeTextString(url.String())
511}
512
513// https://wicg.github.io/webpackage/draft-yasskin-dispatch-bundled-exchanges.html#load-metadata
514// Steps 3-7.

Callers 1

WriteToMethod · 0.85

Calls 3

EncodeTextStringMethod · 0.95
NewEncoderFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected