QueryParams

sttp.model.QueryParams
See theQueryParams companion object
case class QueryParams(ps: Seq[(String, Seq[String])])

Represents query parameters, where each parameter can have 0, 1, or more values. All query parameters are assumed to be decoded.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def get(s: String): Option[String]
def getMulti(s: String): Option[Seq[String]]
def param(k: String, v: String): QueryParams
def param(k: String, v: Seq[String]): QueryParams
def param(p: Map[String, String]): QueryParams
def toMap: Map[String, String]
def toMultiMap: Map[String, Seq[String]]
def toMultiSeq: Seq[(String, Seq[String])]
def toSeq: Seq[(String, String)]
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def toString(includeBoundary: Boolean): String
def toString(keyEncoding: Encoding, valueEncoding: Encoding): String
def toString(keyEncoding: Encoding, valueEncoding: Encoding, includeBoundary: Boolean): String

Value parameters

includeBoundary

Should the boundary ? character be added preceding the result, if the query params are non-empty.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product