(encoding: Encoding["kind"])
| 470 | }) as any |
| 471 | |
| 472 | const defaultContentType = (encoding: Encoding["kind"]) => { |
| 473 | switch (encoding) { |
| 474 | case "Json": { |
| 475 | return "application/json" |
| 476 | } |
| 477 | case "UrlParams": { |
| 478 | return "application/x-www-form-urlencoded" |
| 479 | } |
| 480 | case "Uint8Array": { |
| 481 | return "application/octet-stream" |
| 482 | } |
| 483 | case "Text": { |
| 484 | return "text/plain" |
| 485 | } |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | /** |
| 490 | * @since 1.0.0 |
no outgoing calls
no test coverage detected
searching dependent graphs…