Object

spinoco.protocol.http.codec

helper

Related Doc: package codec

Permalink

object helper

Created by pach on 13/01/17.

Source
helper.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. helper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. val ://: ByteVector

    Permalink
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. val SP: ByteVector

    Permalink
  6. val _equal: ByteVector

    Permalink
  7. val alwaysQuotedUtf8String: Codec[String]

    Permalink
  8. val amp: ByteVector

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def asciiConstant(const: String, ignoreCase: Boolean = true): Codec[Unit]

    Permalink

    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

  11. val asciiString: Codec[String]

    Permalink

    string encoded // decoded as ASCII *

  12. def asciiStringNoWs: Codec[String]

    Permalink

    codec that decodes until whitespace character is found.

    codec that decodes until whitespace character is found. Encodes as ascii string *

  13. def asciiStringUntil(f: (Char) ⇒ Boolean): Codec[String]

    Permalink
  14. val base64Encoded: Codec[ByteVector]

    Permalink
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val colon: ByteVector

    Permalink
  17. val comma: ByteVector

    Permalink
  18. def commaDelimited[A](valueCodec: Codec[A]): Codec[List[A]]

    Permalink

    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

  19. def commaDelimitedMin[A](codec: Codec[A], min: Int): Codec[List[A]]

    Permalink
  20. val comma_SP: ByteVector

    Permalink
  21. val crlf: ByteVector

    Permalink
  22. val dash: ByteVector

    Permalink
  23. def delimitedBy[A](by: ByteVector, encodeBy: ByteVector, valueCodec: Codec[A]): Codec[List[A]]

    Permalink

    Codec for decoding delimited parameters from header.

    Codec for decoding delimited parameters from header. When encoding, the encodeBy is used to encode A delimiter

    When decoding, the parameters are tested if they are quoted strings and if yes, the by is skipped if within quotes

  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. val httpDateTimeCodec: Codec[LocalDateTime]

    Permalink

    encodes // decodes time by http time format *

  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def localDateTime2String(ldt: LocalDateTime): String

    Permalink

    RFC 1123 date 2 string *

  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def orEmpty[A](codec: Codec[A]): Codec[Option[A]]

    Permalink

    codec that decodes to Some(a) when codec decodes or None, when there are no nonempty characters left *

  36. def parametrized[A, B](discriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, Option[B])]

    Permalink

    A codec, that allows to encode/decode parametrized values A by parameter B.

    A codec, that allows to encode/decode parametrized values A by parameter B. Parameter is optional and is discriminated by discriminator

  37. def parametrized2[A, B](discriminator: ByteVector, encodingDiscriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, Option[B])]

    Permalink
  38. def parametrizedN[A, B](discriminator: ByteVector, encodingDiscriminator: ByteVector, aCodec: Codec[A], bCodec: Codec[B]): Codec[(A, List[B])]

    Permalink

    A codec, that allows to encode/decode parametrized values A by optional parameters of B.

    A codec, that allows to encode/decode parametrized values A by optional parameters of B. Parameter is optional (may be N), and is discriminated by discriminator

    furthermore if the discriminator is found in quotes (") it is ignored until cloiong quotes are found

  39. val qPar: ByteVector

    Permalink
  40. val qValueCodec: Codec[Float]

    Permalink

    codec for qValue in multiple parameter lists*

  41. val semicolon: ByteVector

    Permalink
  42. val semicolon_SP: ByteVector

    Permalink
  43. val slash: ByteVector

    Permalink
  44. def splitByQuoted(delimiter: ByteVector, content: BitVector): (BitVector, BitVector)

    Permalink

    splits by delimiter, honoring quoted commas *

  45. def splitByWS(content: BitVector): (BitVector, BitVector)

    Permalink
  46. val star: ByteVector

    Permalink
  47. val starCodec: Codec[Unit]

    Permalink

    codec that succeeds, iff star (*) is present *

  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. val trimmedAsciiToken: Codec[String]

    Permalink
  51. val trimmedUtf8String: Codec[String]

    Permalink

    utf8 string that is trimmed of WS *

  52. val utf8String: Codec[String]

    Permalink

    string encoded // decoded as UTF8 *

  53. def utf8StringUntil(until: String): Codec[String]

    Permalink

    decodes as utf8 string, that will return string until pattern is matched *

  54. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def whitespace(encodeAs: String = " "): Codec[Unit]

    Permalink

    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. *

Inherited from AnyRef

Inherited from Any

Ungrouped