Pular para o conteúdo

Interface: FpMultipartBody

Definido em: fp-api.d.ts:88

Structured request body exposed when bodyType === 'multipart-form'. The single property is parts, an array-like list of text and file parts.

In pre-request scripts, parts is mutable: indexed assignment, push, splice, pop, shift, unshift, reverse, and sort are supported. Each push validates the part shape and throws TypeError synchronously on invalid input. File parts may only be added by referencing an already-staged fileRef — bytes, path, or any other source throws.

In post-response scripts, all mutations throw.

parts: FpMultipartPart[];

Definido em: fp-api.d.ts:89