(method: string | undefined)
| 157 | } |
| 158 | |
| 159 | function isHeadRequest(method: string | undefined): boolean { |
| 160 | return method === 'HEAD' |
| 161 | } |
| 162 | |
| 163 | function methodHasRequestBody(method: string | undefined): boolean { |
| 164 | return method !== 'GET' && method !== 'HEAD' |