object helper
- Alphabetic
- By Inheritance
- helper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- 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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
quotedString: Codec[String]
coder for strings that may be quoted *
- 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
trimmedAsciiString: Codec[String]
ascii string that is trimmed of WS *
-
val
trimmedUtf8String: Codec[String]
utf8 string that is trimmed of WS *
-
def
tuple[A, B](discriminator: ByteVector, acodec: Codec[A], bCodec: Codec[B]): Codec[(A, B)]
Tuple A, B separated by
discriminator
.Tuple A, B separated by
discriminator
. This will first search for discriminator, and if match will applyA
codec andB
codec to remaining bits, if any. -
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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. *