(xhr)
| 101 | } |
| 102 | |
| 103 | function getParameters(xhr) { |
| 104 | if (getHTTPMethod(xhr) == 'GET') { |
| 105 | return parseParams(getQuery(xhr.url)) |
| 106 | } else { |
| 107 | return parseParams(xhr.requestBody) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | function log(val) { |
| 112 | console.log(val) |
no test coverage detected