MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / decode

Function decode

libraries/p5.js:7851–7862  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

7849 }
7850
7851 function decode(body) {
7852 var form = new FormData()
7853 body.trim().split('&').forEach(function(bytes) {
7854 if (bytes) {
7855 var split = bytes.split('=')
7856 var name = split.shift().replace(/\+/g, ' ')
7857 var value = split.join('=').replace(/\+/g, ' ')
7858 form.append(decodeURIComponent(name), decodeURIComponent(value))
7859 }
7860 })
7861 return form
7862 }
7863
7864 function parseHeaders(rawHeaders) {
7865 var headers = new Headers()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected