@zwa73/utils 1.0.249 → 1.0.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UtilHttp.d.ts +2 -10
- package/dist/UtilHttp.js +0 -4
- package/package.json +1 -1
package/dist/UtilHttp.d.ts
CHANGED
|
@@ -247,20 +247,12 @@ export declare class UtilHttp<D extends Partial<RequestOption> & Required<Pick<R
|
|
|
247
247
|
form: QueryRequestData;
|
|
248
248
|
}) => MPromise<SendProcData>, A>;
|
|
249
249
|
/**发送form-data包提供的表单数据 */
|
|
250
|
-
sendFormData(): UtilHttp<D
|
|
251
|
-
headers: {
|
|
252
|
-
"Content-Type": "multipart/form-data";
|
|
253
|
-
};
|
|
254
|
-
}, (opt: RequestOption, arg: {
|
|
250
|
+
sendFormData(): UtilHttp<D, (opt: RequestOption, arg: {
|
|
255
251
|
/**form-data包提供的FormData表单数据 */
|
|
256
252
|
formdata: FormData;
|
|
257
253
|
}) => MPromise<SendProcData>, A>;
|
|
258
254
|
/**发送文件 */
|
|
259
|
-
sendFile(): UtilHttp<D
|
|
260
|
-
headers: {
|
|
261
|
-
"Content-Type": "multipart/form-data";
|
|
262
|
-
};
|
|
263
|
-
}, (opt: RequestOption, arg: {
|
|
255
|
+
sendFile(): UtilHttp<D, (opt: RequestOption, arg: {
|
|
264
256
|
/**文件路径 */
|
|
265
257
|
filepath: string;
|
|
266
258
|
/**文件名 */
|
package/dist/UtilHttp.js
CHANGED
|
@@ -311,8 +311,6 @@ class UtilHttp {
|
|
|
311
311
|
};
|
|
312
312
|
};
|
|
313
313
|
this._send = sendProc;
|
|
314
|
-
this._data.headers ??= {};
|
|
315
|
-
this._data.headers['Content-Type'] = 'multipart/form-data';
|
|
316
314
|
return this;
|
|
317
315
|
}
|
|
318
316
|
/**发送文件 */
|
|
@@ -338,8 +336,6 @@ class UtilHttp {
|
|
|
338
336
|
};
|
|
339
337
|
};
|
|
340
338
|
this._send = proc;
|
|
341
|
-
this._data.headers ??= {};
|
|
342
|
-
this._data.headers['Content-Type'] = 'multipart/form-data';
|
|
343
339
|
return this;
|
|
344
340
|
}
|
|
345
341
|
sendNone() {
|