UrlForm

final class UrlForm extends AnyVal
Companion:
object
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def +(kv: (String, String)): UrlForm
def ++?[T : QueryParamEncoder](key: String, vals: Chain[T]): UrlForm
def +?[T : QueryParamEncoder](key: String, value: T): UrlForm
def +?[T : QueryParamEncoder](key: String, value: Option[T]): UrlForm
def get(key: String): Chain[String]
def getFirstOrElse(key: String, default: => String): String
def getOrElse(key: String, default: => Chain[String]): Chain[String]
override def toString: String
Definition Classes
Any
def updateFormField[T](key: String, value: T)(implicit ev: QueryParamEncoder[T]): UrlForm
Value parameters:
ev

evidence of the existence of QueryParamEncoder[T]

key

name of the field

value

value of the field

Returns:

UrlForm updated with key and value pair if key does not exist in values. Otherwise value will be added to the existing entry.

def updateFormField[T](key: String, value: Option[T])(implicit ev: QueryParamEncoder[T]): UrlForm
Value parameters:
ev

evidence of the existence of QueryParamEncoder[T]

key

name of the field

value

optional value of the field

Returns:

UrlForm updated as it is updated with updateFormField(key, v) if value is Some(v), otherwise it is unaltered

def updateFormFields[T](key: String, vals: Chain[T])(implicit ev: QueryParamEncoder[T]): UrlForm
Value parameters:
ev

evidence of the existence of QueryParamEncoder[T]

key

name of the field

vals

a Chain of values for the field

Returns:

UrlForm updated with key and vals if key does not exist in values, otherwise vals will be appended to the existing entry. If vals is empty, UrlForm will remain as is

Concrete fields