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

Function splitList

packages/effect/src/http/HttpMiddleware.ts:540–540  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

538}
539
540const splitList = (value: string | undefined): Array<string> | undefined => value?.split(",").map((_) => _.trim())
541
542// Host and proto lists are only associated with a hop when they have one value
543// per `X-Forwarded-For` entry.

Callers 2

applyXForwardedFunction · 0.85
alignedValueFunction · 0.85

Calls 3

trimMethod · 0.80
mapMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected