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

Function onField

packages/effect/src/unstable/http/Multipart.ts:459–461  ·  view source on GitHub ↗
(info, value)

Source from the content-addressed store, hash-verified

457 const parser = MP.make({
458 ...config,
459 onField(info, value) {
460 partsBuffer.push(new FieldImpl(info.name, info.contentType, MP.decodeField(info, value)))
461 },
462 onFile(info) {
463 let chunks: Array<Uint8Array> = []
464 let finished = false

Callers 1

makeFunction · 0.50

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected