( options: Options | undefined, headers: Headers.Headers )
| 194 | } |
| 195 | |
| 196 | const getContentType = ( |
| 197 | options: Options | undefined, |
| 198 | headers: Headers.Headers |
| 199 | ): string | undefined => { |
| 200 | if (options?.contentType) { |
| 201 | return options.contentType |
| 202 | } else if (options?.headers) { |
| 203 | return headers["content-type"] |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * Creates an HTTP response whose body is a string. |
no outgoing calls
no test coverage detected