Package akka.http.scaladsl.model
Class FormData
- java.lang.Object
-
- akka.http.scaladsl.model.FormData
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class FormData extends java.lang.Object implements scala.Product, java.io.Serializable
Simple model forapplication/x-www-form-urlencoded
form data.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FormData
apply(scala.collection.immutable.Map<java.lang.String,java.lang.String> fields)
static FormData
apply(scala.collection.immutable.Seq<scala.Tuple2<java.lang.String,java.lang.String>> fields)
static FormData
Empty()
Uri.Query
fields()
RequestEntity
toEntity()
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.
-
-
-
Constructor Detail
-
FormData
public FormData(Uri.Query fields)
-
-
Method Detail
-
Empty
public static FormData Empty()
-
apply
public static FormData apply(scala.collection.immutable.Map<java.lang.String,java.lang.String> fields)
-
apply
public static FormData apply(scala.collection.immutable.Seq<scala.Tuple2<java.lang.String,java.lang.String>> fields)
-
fields
public Uri.Query fields()
-
toEntity
public RequestEntity toEntity()
-
toEntity
public 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. Since 10.1.7.
-
-