MCPcopy Create free account
hub / github.com/form-data/form-data / FormData

Class FormData

index.d.ts:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30declare class FormData extends stream.Readable {
31 constructor(options?: Options);
32 append(key: string, value: any, options?: FormData.AppendOptions | string): void;
33 getHeaders(userHeaders?: FormData.Headers): FormData.Headers;
34 submit(
35 params: string | FormData.SubmitOptions,
36 callback?: (error: Error | null, response: http.IncomingMessage) => void
37 ): http.ClientRequest;
38 getBuffer(): Buffer;
39 setBoundary(boundary: string): void;
40 getBoundary(): string;
41 getLength(callback: (err: Error | null, length: number) => void): void;
42 getLengthSync(): number;
43 hasKnownLength(): boolean;
44}
45
46declare namespace FormData {
47 interface Headers {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected