MCPcopy
hub / github.com/Effect-TS/effect / defaultContentType

Function defaultContentType

packages/platform/src/HttpApiSchema.ts:472–487  ·  view source on GitHub ↗
(encoding: Encoding["kind"])

Source from the content-addressed store, hash-verified

470 }) as any
471
472const 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

Callers 1

HttpApiSchema.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…