(method)
| 196 | var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'] |
| 197 | |
| 198 | function normalizeMethod(method) { |
| 199 | var upcased = method.toUpperCase() |
| 200 | return (methods.indexOf(upcased) > -1) ? upcased : method |
| 201 | } |
| 202 | |
| 203 | function Request(url, options) { |
| 204 | options = options || {} |