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): Codec[Unit]

    Permalink

    encodes by supplied constant.

    encodes by supplied constant. Whitespace is ignored *

  11. val asciiString: Codec[String]

    Permalink

    string encoded // decoded as ASCII *

  12. val base64Encoded: Codec[ByteVector]

    Permalink
  13. def clone(): AnyRef

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

    Permalink
  15. val comma: ByteVector

    Permalink
  16. 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

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

    Permalink
  18. val comma_SP: ByteVector

    Permalink
  19. val crlf: ByteVector

    Permalink
  20. val dash: ByteVector

    Permalink
  21. 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

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

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

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

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

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

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

    Permalink

    encodes // decodes time by http time format *

  28. final def isInstanceOf[T0]: Boolean

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

    Permalink

    RFC 1123 date 2 string *

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

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

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

    Permalink
    Definition Classes
    AnyRef
  33. 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

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

    Permalink
  35. 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

  36. val qPar: ByteVector

    Permalink
  37. val qValueCodec: Codec[Float]

    Permalink

    codec for qValue in multiple parameter lists*

  38. val quotedString: Codec[String]

    Permalink

    coder for strings that may be quoted *

  39. val semicolon: ByteVector

    Permalink
  40. val semicolon_SP: ByteVector

    Permalink
  41. val slash: ByteVector

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

    Permalink

    splits by delimiter, honoring quoted commas *

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

    Permalink
  44. val star: ByteVector

    Permalink
  45. val starCodec: Codec[Unit]

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  48. val trimmedAsciiString: Codec[String]

    Permalink

    ascii string that is trimmed of WS *

  49. val trimmedUtf8String: Codec[String]

    Permalink

    utf8 string that is trimmed of WS *

  50. def tuple[A, B](discriminator: ByteVector, acodec: Codec[A], bCodec: Codec[B]): Codec[(A, B)]

    Permalink

    Tuple A, B separated by discriminator.

    Tuple A, B separated by discriminator. This will first search for discriminator, and if match will apply A codec nad B codec to remaining bits, if any.

  51. val utf8String: Codec[String]

    Permalink

    string encoded // decoded as UTF8 *

  52. final def wait(): Unit

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

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

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

    Permalink

    codec that strips all whitespace, and encodes as supplied string *

Inherited from AnyRef

Inherited from Any

Ungrouped