MCPcopy Create free account
hub / github.com/Effect-TS/effect / addNoContent

Function addNoContent

packages/effect/src/unstable/httpapi/OpenApi.ts:766–780  ·  view source on GitHub ↗
(status: number, description: string)

Source from the content-addressed store, hash-verified

764 }
765
766 function addNoContent(status: number, description: string) {
767 const statusMap = map.get(status)
768 if (statusMap === undefined) {
769 map.set(status, {
770 descriptions: new Set([description]),
771 content: undefined,
772 headers: [],
773 streamContent: undefined
774 })
775 } else {
776 if (description !== undefined) {
777 statusMap.descriptions.add(description)
778 }
779 }
780 }
781
782 function addContent(
783 schema: Schema.Constraint,

Callers 1

processFunction · 0.85

Calls 3

getMethod · 0.65
setMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected