object helper
- Alphabetic
- By Inheritance
- helper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- val ://: ByteVector
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val SP: ByteVector
- val _equal: ByteVector
- val alwaysQuotedUtf8String: Codec[String]
- val amp: ByteVector
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asciiConstant(const: String, ignoreCase: Boolean = true): Codec[Unit]
Encodes as supplied ascii string constant.
Encodes as supplied ascii string constant. Drops any leading whitespace if any.
- const
Constant to encode // decode
- ignoreCase
When true, the decoding ignores case
- val asciiString: Codec[String]
string encoded // decoded as ASCII *
- def asciiStringNoWs: Codec[String]
codec that decodes until whitespace character is found.
codec that decodes until whitespace character is found. Encodes as ascii string *
- def asciiStringUntil(f: (Char) => Boolean): Codec[String]
- val base64Encoded: Codec[ByteVector]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val colon: ByteVector
- val comma: ByteVector
- def commaDelimited[A](valueCodec: Codec[A]): Codec[List[A]]
Codec for decoding comma delimited parameters from header.
Codec for decoding comma delimited parameters from header. When encoding, the comma is always followed by [SP]
When decoding, the parameters are tested if they are quoted strings and if yes, the comma is skipped if within quotes
- def commaDelimitedMin[A](codec: Codec[A], min: Int): Codec[List[A]]
- val comma_SP: ByteVector
- val crlf: ByteVector
- val dash: ByteVector
- def delimitedBy[A](by: ByteVector, encodeBy: ByteVector, valueCodec: Codec[A]): Codec[List[A]]
Codec for decoding delimited parameters from header.
Codec for decoding delimited parameters from header. When encoding, the encodeBy is used to encode
A
delimiterWhen decoding, the parameters are tested if they are quoted strings and if yes, the
by
is skipped if within quotes - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val httpDateTimeCodec: Codec[LocalDateTime]
encodes // decodes time by http time format *
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def localDateTime2String(ldt: LocalDateTime): String
RFC 1123 date 2 string *
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def orEmpty[A](codec: Codec[A]): Codec[Option[A]]
codec that decodes to Some(a) when codec decodes or None, when there are no nonempty characters left *
- def parametrized[A, B](discriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, Option[B])]
A codec, that allows to encode/decode parametrized values
A
by parameterB
.A codec, that allows to encode/decode parametrized values
A
by parameterB
. Parameter is optional and is discriminated bydiscriminator
- def parametrized2[A, B](discriminator: ByteVector, encodingDiscriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, Option[B])]
- def parametrizedN[A, B](discriminator: ByteVector, encodingDiscriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, List[B])]
A codec, that allows to encode/decode parametrized values
A
by optional parameters ofB
.A codec, that allows to encode/decode parametrized values
A
by optional parameters ofB
. Parameter is optional (may be N), and is discriminated bydiscriminator
furthermore if the discriminator is found in quotes (") it is ignored until cloiong quotes are found
- val qPar: ByteVector
- val qValueCodec: Codec[Float]
codec for qValue in multiple parameter lists*
- val semicolon: ByteVector
- val semicolon_SP: ByteVector
- val slash: ByteVector
- def splitByQuoted(delimiter: ByteVector, content: BitVector): (BitVector, BitVector)
splits by delimiter, honoring quoted commas *
- def splitByWS(content: BitVector): (BitVector, BitVector)
- val star: ByteVector
- val starCodec: Codec[Unit]
codec that succeeds, iff star (*) is present *
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val trimmedAsciiToken: Codec[String]
- val trimmedUtf8String: Codec[String]
utf8 string that is trimmed of WS *
- val utf8String: Codec[String]
string encoded // decoded as UTF8 *
- def utf8StringUntil(until: String): Codec[String]
decodes as utf8 string, that will return string until pattern is matched *
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def whitespace(encodeAs: String = " "): Codec[Unit]
codec that strips all whitespace, and encodes as supplied string.
codec that strips all whitespace, and encodes as supplied string. At least one whitespace is mandatory. *