final class UrlForm extends AnyVal
- Source
- UrlForm.scala
- Alphabetic
- By Inheritance
- UrlForm
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +(kv: (String, String)): UrlForm
- def ++?[T](key: String, vals: Chain[T])(implicit arg0: QueryParamEncoder[T]): UrlForm
- def +?[T](key: String, value: Option[T])(implicit arg0: QueryParamEncoder[T]): UrlForm
- def +?[T](key: String, value: T)(implicit arg0: QueryParamEncoder[T]): UrlForm
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def get(key: String): Chain[String]
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def getFirst(key: String): Option[String]
- def getFirstOrElse(key: String, default: ⇒ String): String
- def getOrElse(key: String, default: ⇒ Chain[String]): Chain[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- UrlForm → Any
-
def
updateFormField[T](key: String, value: Option[T])(implicit ev: QueryParamEncoder[T]): UrlForm
- key
name of the field
- value
optional value of the field
- ev
evidence of the existence of
QueryParamEncoder[T]
- returns
UrlForm
updated as it is updated withupdateFormField(key, v)
ifvalue
isSome(v)
, otherwise it is unaltered
-
def
updateFormField[T](key: String, value: T)(implicit ev: QueryParamEncoder[T]): UrlForm
- key
name of the field
- value
value of the field
- ev
evidence of the existence of
QueryParamEncoder[T]
- returns
UrlForm
updated withkey
andvalue
pair if key does not exist invalues
. Otherwisevalue
will be added to the existing entry.
-
def
updateFormFields[T](key: String, vals: Chain[T])(implicit ev: QueryParamEncoder[T]): UrlForm
- key
name of the field
- vals
a Chain of values for the field
- ev
evidence of the existence of
QueryParamEncoder[T]
- returns
UrlForm
updated withkey
andvals
if key does not exist invalues
, otherwisevals
will be appended to the existing entry. Ifvals
is empty,UrlForm
will remain as is
- val values: Map[String, Chain[String]]