(body)
| 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() |
nothing calls this directly
no outgoing calls
no test coverage detected