( options: Options | undefined, headers: Headers.Headers )
| 178 | } |
| 179 | |
| 180 | const getContentType = ( |
| 181 | options: Options | undefined, |
| 182 | headers: Headers.Headers |
| 183 | ): string | undefined => { |
| 184 | if (options?.contentType) { |
| 185 | return options.contentType |
| 186 | } else if (options?.headers) { |
| 187 | return headers["content-type"] |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * Creates an HTTP response whose body is a string. |
no outgoing calls
no test coverage detected