Skip to content

Commit 04dc331

Browse files
committed
docs: added js docstring for setFormPayload
1 parent 4efe025 commit 04dc331

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/request.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ const setBodyPayload = (curl: Easy, body: string | Buffer, httpHeaders: string[]
9797
}
9898
};
9999

100+
/**
101+
* Sets the buffer payload for the curl request.
102+
* @param {Easy} curl - The curl object.
103+
* @param {Array<HttpPostField>} formData - list of files/contents to be sent
104+
*/
100105
const setFormPayload = (curl: Easy, formData: HttpPostField[]) => {
101106
curl.setOpt(Curl.option.HTTPPOST, formData);
102107
};

0 commit comments

Comments
 (0)