MCPcopy Create free account
hub / github.com/ampproject/amphtml / serializeProtoMessageForUrl

Function serializeProtoMessageForUrl

third_party/subscriptions-project/swg.js:5409–5411  ·  view source on GitHub ↗

* @param {!../proto/api_messages.Message} message * @return {string}

(message)

Source from the content-addressed store, hash-verified

5407 * @return {string}
5408 */
5409function serializeProtoMessageForUrl(message) {
5410 return JSON.stringify(message.toArray(false));
5411}
5412
5413/**
5414 * Returns the canonical URL from the canonical tag. If the canonical tag is

Callers 2

sendPostMethod · 0.85
sendBeaconMethod · 0.85

Calls 2

stringifyMethod · 0.80
toArrayMethod · 0.45

Tested by

no test coverage detected