| 28 | } |
| 29 | |
| 30 | declare 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 | |
| 46 | declare namespace FormData { |
| 47 | interface Headers { |
nothing calls this directly
no outgoing calls
no test coverage detected