* Normalized method name by uppercasing. * @param {string|undefined} method * @return {string} * @private
(method)
| 193 | * @private |
| 194 | */ |
| 195 | function normalizeMethod(method) { |
| 196 | if (method === undefined) { |
| 197 | return 'GET'; |
| 198 | } |
| 199 | method = method.toUpperCase(); |
| 200 | devAssert( |
| 201 | allowedMethods.includes(method), |
| 202 | 'Only one of %s is currently allowed. Got %s', |
| 203 | allowedMethods.join(', '), |
| 204 | method |
| 205 | ); |
| 206 | return method; |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Provides access to the response headers as defined in the Fetch API. |
no test coverage detected