Package reactor.netty.http.client
Interface HttpClientForm
public interface HttpClientForm
An HTTP Form builder.
-
Method Summary
Modifier and TypeMethodDescriptionAdd an HTTP Form attribute.Set the FormCharset
.cleanOnTerminate
(boolean clean) Should file attributes be cleaned and eventually removed from disk.Set Form encoding.factory
(HttpDataFactory factory) Set Upload factories (allows memory threshold configuration).Add an HTTP File Upload attribute.default HttpClientForm
Add an HTTP File Upload attribute.file
(String name, InputStream stream) Add an HTTP File Upload attribute.default HttpClientForm
file
(String name, InputStream stream, @Nullable String contentType) Add an HTTP File Upload attribute.Add an HTTP File Upload attribute.file
(String name, String filename, InputStream stream, @Nullable String contentType) Add an HTTP File Upload attribute.Add an HTTP File Upload attribute.Add an HTTP File Upload attribute.multipart
(boolean multipart) Define if this request will be encoded as Multipart.Add an HTTP File Upload attribute for a text file.Add an HTTP File Upload attribute for a text file.textFile
(String name, InputStream stream) Add an HTTP File Upload attribute for a text file.textFile
(String name, InputStream inputStream, @Nullable String contentType) Add an HTTP File Upload attribute for a text file.
-
Method Details
-
attr
Add an HTTP Form attribute.- Parameters:
name
- Attribute namevalue
- Attribute value- Returns:
- this builder
-
charset
Set the FormCharset
.- Parameters:
charset
- form charset- Returns:
- this builder
-
cleanOnTerminate
Should file attributes be cleaned and eventually removed from disk. Default to false.- Parameters:
clean
- true if cleaned on termination (successful or failed)- Returns:
- this builder
-
encoding
Set Form encoding.- Parameters:
mode
- the encoding mode for this form encoding- Returns:
- this builder
-
factory
Set Upload factories (allows memory threshold configuration).- Parameters:
factory
- the newHttpDataFactory
to use- Returns:
- this builder
-
file
Add an HTTP File Upload attribute.- Parameters:
name
- File namefile
- File reference- Returns:
- this builder
-
file
Add an HTTP File Upload attribute.- Parameters:
name
- File namestream
- File content as InputStream- Returns:
- this builder
-
file
Add an HTTP File Upload attribute.- Parameters:
name
- File namefile
- File referencecontentType
- File mime-type- Returns:
- this builder
-
file
Add an HTTP File Upload attribute.- Parameters:
name
- File namefilename
- File name to override origin namefile
- File referencecontentType
- File mime-type- Returns:
- this builder
-
file
Add an HTTP File Upload attribute.- Parameters:
name
- File namestream
- File content as InputStreamcontentType
- File mime-type- Returns:
- this builder
-
file
Add an HTTP File Upload attribute.- Parameters:
name
- File namefilename
- File name to override origin namestream
- File content as InputStreamcontentType
- File mime-type- Returns:
- this builder
-
files
Add an HTTP File Upload attribute.- Parameters:
name
- File namefiles
- File referencescontentTypes
- File mime-types in the same order than file references- Returns:
- this builder
-
files
Add an HTTP File Upload attribute.- Parameters:
name
- File namefiles
- File referencescontentTypes
- File mime-type in the same order than file referencestextFiles
- Plain-Text transmission in the same order than file references- Returns:
- this builder
-
multipart
Define if this request will be encoded as Multipart.- Parameters:
multipart
- should this form be encoded as Multipart- Returns:
- this builder
-
textFile
Add an HTTP File Upload attribute for a text file.- Parameters:
name
- Text file namefile
- Text File reference- Returns:
- this builder
-
textFile
Add an HTTP File Upload attribute for a text file.- Parameters:
name
- Text file namestream
- Text file content as InputStream- Returns:
- this builder
-
textFile
Add an HTTP File Upload attribute for a text file.- Parameters:
name
- Text file namefile
- Text File referencecontentType
- Text file mime-type- Returns:
- this builder
-
textFile
Add an HTTP File Upload attribute for a text file.- Parameters:
name
- Text file nameinputStream
- Text file content as InputStreamcontentType
- Text file mime-type- Returns:
- this builder
-