Class FormData
java.lang.Object
cool.scx.common.http_client.request_body.FormData
- All Implemented Interfaces:
ScxHttpClientRequestBody
使用 netty 的 HttpPostRequestEncoder 简化 FormData 的创建
- Version:
- 2.0.4
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbodyPublisher(HttpRequest.Builder builder) fileUpload(String name, byte[] fileByte) fileUpload(String name, byte[] fileByte, String filename) fileUpload(String name, byte[] fileByte, String filename, String contentType) fileUpload(String name, Path filePath) fileUpload(String name, Path filePath, String filename) fileUpload(String name, Path filePath, String filename, String contentType) items()
-
Constructor Details
-
FormData
public FormData()
-
-
Method Details
-
attribute
-
fileUpload
-
fileUpload
-
fileUpload
-
fileUpload
-
fileUpload
-
fileUpload
-
remove
-
items
-
bodyPublisher
- Specified by:
bodyPublisherin interfaceScxHttpClientRequestBody
-