public final class FormData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static FormData |
EMPTY
Returns empty FormData.
|
Modifier and Type | Method and Description |
---|---|
static FormData |
create(java.lang.Iterable<org.apache.pekko.japi.Pair<java.lang.String,java.lang.String>> params)
Creates a FormData from the given parameters.
|
static FormData |
create(java.util.Map<java.lang.String,java.lang.String> params)
Creates the FormData from the given parameters.
|
static FormData |
create(org.apache.pekko.japi.Pair<java.lang.String,java.lang.String>... params)
Creates the FormData from the given parameters.
|
RequestEntity |
toEntity()
Converts this FormData to a RequestEntity using UTF8 encoding.
|
RequestEntity |
toEntity(HttpCharset charset)
Deprecated.
FormData always uses charset UTF-8 without appending the charset to 'Content-Type:
application/x-www-form-urlencoded', use toEntity() instead.
|
public static final FormData EMPTY
public FormData(Query fields)
public RequestEntity toEntity()
@Deprecated public RequestEntity toEntity(HttpCharset charset)
@SafeVarargs public static FormData create(org.apache.pekko.japi.Pair<java.lang.String,java.lang.String>... params)
public static FormData create(java.util.Map<java.lang.String,java.lang.String> params)
public static FormData create(java.lang.Iterable<org.apache.pekko.japi.Pair<java.lang.String,java.lang.String>> params)