QuerySegment

sttp.model.Uri$.QuerySegment$
See theQuerySegment companion trait
object QuerySegment

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class KeyValue(k: String, v: String, keyEncoding: Encoding, valueEncoding: Encoding) extends QuerySegment

Value parameters

keyEncoding

See Plain.encoding

valueEncoding

See Plain.encoding

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait QuerySegment
class Object
trait Matchable
class Any
Show all
case class Plain(v: String, encoding: Encoding) extends QuerySegment

A query fragment which will be inserted into the query, without and preceding or following separators. Allows constructing query strings which are not (only) &-separated key-value pairs.

A query fragment which will be inserted into the query, without and preceding or following separators. Allows constructing query strings which are not (only) &-separated key-value pairs.

Value parameters

encoding

How to encode the value, and which characters should be escaped. The RFC3986 standard defines that the query can include these special characters, without escaping:

/?:@-._~!$&()*+,;=

See: https://stackoverflow.com/questions/2322764/what-characters-must-be-escaped-in-an-http-query-string https://stackoverflow.com/questions/2366260/whats-valid-and-whats-not-in-a-uri-query

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait QuerySegment
class Object
trait Matchable
class Any
Show all
case class Value(v: String, encoding: Encoding) extends QuerySegment

A query fragment which contains only the value, without a key.

A query fragment which contains only the value, without a key.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait QuerySegment
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror