cc.spray.http.parser

HttpParser

object HttpParser extends SprayParser with ProtocolParameterRules with AdditionalRules with CommonActions with AcceptCharsetHeader with AcceptEncodingHeader with AcceptHeader with AcceptLanguageHeader with AcceptRangesHeader with ContentTypeHeader with XForwardedForHeader

Parser for all HTTP headers as defined by http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

linear super types: XForwardedForHeader, ContentTypeHeader, AcceptRangesHeader, AcceptLanguageHeader, AcceptHeader, AcceptEncodingHeader, AcceptCharsetHeader, CommonActions, AdditionalRules, ProtocolParameterRules, SprayParser, Parser, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HttpParser
  2. XForwardedForHeader
  3. ContentTypeHeader
  4. AcceptRangesHeader
  5. AcceptLanguageHeader
  6. AcceptHeader
  7. AcceptEncodingHeader
  8. AcceptCharsetHeader
  9. CommonActions
  10. AdditionalRules
  11. ProtocolParameterRules
  12. SprayParser
  13. Parser
  14. AnyRef
  15. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Value Members

  1. def != (arg0: AnyRef) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. def ACCEPT : Rule1[Accept]

    definition classes: AcceptHeader
  9. def ACCEPT_CHARSET : Rule1[Accept-Charset]

    definition classes: AcceptCharsetHeader
  10. def ACCEPT_ENCODING : Rule1[Accept-Encoding]

    definition classes: AcceptEncodingHeader
  11. def ACCEPT_LANGUAGE : Rule1[Accept-Language]

    definition classes: AcceptLanguageHeader
  12. def ACCEPT_RANGES : Rule1[Accept-Ranges]

    definition classes: AcceptRangesHeader
  13. def ASCTimeDate : Rule0

    definition classes: ProtocolParameterRules
  14. def AcceptExtension : Rule0

    definition classes: AcceptHeader
  15. def AcceptParams : Rule0

    definition classes: AcceptHeader
  16. def Attribute : Rule1[String]

    definition classes: ProtocolParameterRules
  17. def BytesUnit : Rule1[StandardRangeUnit]

    definition classes: ProtocolParameterRules
  18. def CONTENT_TYPE : Rule1[Content-Type]

    definition classes: ContentTypeHeader
  19. def Charset : Rule1[String]

    definition classes: ProtocolParameterRules
  20. def CharsetQuality : Rule0

    definition classes: AcceptCharsetHeader
  21. def CharsetRangeDecl : Rule1[CharsetRange]

    definition classes: AcceptCharsetHeader
  22. def CharsetRangeDef : Rule1[CharsetRange]

    definition classes: AcceptCharsetHeader
  23. def ContentCoding : Rule1[String]

    definition classes: ProtocolParameterRules
  24. def Date1 : Rule0

    definition classes: ProtocolParameterRules
  25. def Date2 : Rule0

    definition classes: ProtocolParameterRules
  26. def Date3 : Rule0

    definition classes: ProtocolParameterRules
  27. def DeltaSeconds : Rule0

    definition classes: ProtocolParameterRules
  28. def EncodingDef : Rule1[Encoding]

    definition classes: AcceptEncodingHeader
  29. def EncodingQuality : Rule0

    definition classes: AcceptEncodingHeader
  30. def EntityTag : Rule1[String]

    definition classes: ProtocolParameterRules
  31. def HttpDate : Rule0

    definition classes: ProtocolParameterRules
  32. def HttpVersion : Rule0

    definition classes: ProtocolParameterRules
  33. def Ip : Rule1[HttpIp]

    definition classes: AdditionalRules
  34. def IpNumber : Rule0

    definition classes: AdditionalRules
  35. def LanguageQuality : Rule0

    definition classes: AcceptLanguageHeader
  36. def LanguageRangeDef : Rule1[Product with LanguageRange]

    definition classes: AcceptLanguageHeader
  37. def LanguageTag : Rule2[String, List[String]]

    definition classes: ProtocolParameterRules
  38. def MediaRangeDecl : Rule1[MediaRange]

    definition classes: AcceptHeader
  39. def MediaRangeDef : Rule1[MediaRange]

    definition classes: AcceptHeader
  40. def MediaTypeDecl : Rule1[Content-Type]

    definition classes: ContentTypeHeader
  41. def MediaTypeDef : Rule3[String, String, Map[String, String]]

    definition classes: ProtocolParameterRules
  42. def Month : Rule0

    definition classes: ProtocolParameterRules
  43. def NoRangeUnitsDef : Rule1[List[RangeUnit]]

    definition classes: AcceptRangesHeader
  44. def OpaqueTag : Rule1[String]

    definition classes: ProtocolParameterRules
  45. def OtherRangeUnit : Rule1[CustomRangeUnit]

    definition classes: ProtocolParameterRules
  46. def Parameter : Rule1[(String, String)]

    definition classes: ProtocolParameterRules
  47. def PrimaryTag : Rule1[String]

    definition classes: ProtocolParameterRules
  48. def Product : Rule2[String, Option[String]]

    definition classes: ProtocolParameterRules
  49. def ProductVersion : Rule1[String]

    definition classes: ProtocolParameterRules
  50. def QValue : Rule0

    definition classes: ProtocolParameterRules
  51. def RFC1123Date : Rule0

    definition classes: ProtocolParameterRules
  52. def RFC850Date : Rule0

    definition classes: ProtocolParameterRules
  53. def RangeUnit : Rule1[RangeUnit]

    definition classes: ProtocolParameterRules
  54. def RangeUnitsDef : Rule1[List[RangeUnit]]

    definition classes: AcceptRangesHeader
  55. def SubTag : Rule1[String]

    definition classes: ProtocolParameterRules
  56. def Subtype : Rule1[String]

    definition classes: ProtocolParameterRules
  57. def Time : Rule0

    definition classes: ProtocolParameterRules
  58. def TransferCoding : Rule0

    definition classes: ProtocolParameterRules
  59. def TransferExtension : Rule2[String, List[(String, String)]]

    definition classes: ProtocolParameterRules
  60. def Type : Rule1[String]

    definition classes: ProtocolParameterRules
  61. def Value : Rule1[String]

    definition classes: ProtocolParameterRules
  62. def Weekday : Rule0

    definition classes: ProtocolParameterRules
  63. def Wkday : Rule0

    definition classes: ProtocolParameterRules
  64. def X_FORWARDED_FOR : Rule1[X-Forwarded-For]

    definition classes: XForwardedForHeader
  65. def anyOf (chars: Characters) : Rule0

    definition classes: Parser
  66. def anyOf (chars: Array[Char]) : Rule0

    definition classes: Parser
  67. def anyOf (s: String) : Rule0

    definition classes: Parser
  68. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  69. def buildParseTree : Boolean

    definition classes: Parser
  70. def ch (c: Char) : CharRule

    definition classes: Parser
  71. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  72. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  73. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  74. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  75. def getClass () : java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  76. def getMediaRange (mainType: String, subType: String) : MediaRange

    definition classes: AcceptHeader
  77. def getMediaType (mainType: String, subType: String) : MediaType

    definition classes: CommonActions
  78. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  79. def ignoreCase (chars: Array[Char]) : Rule0

    definition classes: Parser
  80. def ignoreCase (s: String) : Rule0

    definition classes: Parser
  81. def ignoreCase (c: Char) : Rule0

    definition classes: Parser
  82. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  83. def nTimes [A, B] (times: Int, sub: Rule2[A, B], separator: Rule0) : Rule1[List[(A, B)]]

    definition classes: Parser
  84. def nTimes [A, B] (times: Int, sub: Rule2[A, B]) : Rule1[List[(A, B)]]

    definition classes: Parser
  85. def nTimes [A] (times: Int, sub: Rule1[A], separator: Rule0) : Rule1[List[A]]

    definition classes: Parser
  86. def nTimes [A] (times: Int, sub: Rule1[A]) : Rule1[List[A]]

    definition classes: Parser
  87. def nTimes [Z] (times: Int, sub: ReductionRule1[Z, Z], separator: Rule0) : ReductionRule1[Z, Z]

    definition classes: Parser
  88. def nTimes [Z] (times: Int, sub: ReductionRule1[Z, Z]) : ReductionRule1[Z, Z]

    definition classes: Parser
  89. def nTimes (times: Int, sub: Rule0, separator: Rule0) : Rule0

    definition classes: Parser
  90. def nTimes (times: Int, sub: Rule0) : Rule0

    definition classes: Parser
  91. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  92. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  93. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  94. def oneOrMore [A, B] (sub: Rule2[A, B], separator: Rule0) : Rule1[List[(A, B)]]

    definition classes: Parser
  95. def oneOrMore [A] (sub: Rule1[A], separator: Rule0) : Rule1[List[A]]

    definition classes: Parser
  96. def oneOrMore (sub: Rule0, separator: Rule0) : Rule0

    definition classes: Parser
  97. def oneOrMore [A, B] (sub: Rule2[A, B]) : Rule1[List[(A, B)]]

    definition classes: Parser
  98. def oneOrMore [A] (sub: Rule1[A]) : Rule1[List[A]]

    definition classes: Parser
  99. def oneOrMore [Z] (sub: ReductionRule1[Z, Z]) : ReductionRule1[Z, Z]

    definition classes: Parser
  100. def oneOrMore (sub: Rule0) : Rule0

    definition classes: Parser
  101. def optional [A, B] (sub: Rule2[A, B]) : Rule1[Option[(A, B)]]

    definition classes: Parser
  102. def optional [A] (sub: Rule1[A]) : Rule1[Option[A]]

    definition classes: Parser
  103. def optional [Z] (sub: ReductionRule1[Z, Z]) : ReductionRule1[Z, Z]

    definition classes: Parser
  104. def optional (sub: Rule0) : Rule0

    definition classes: Parser
  105. def parse [A] (rule: Rule1[A], input: String) : Either[String, A]

    definition classes: SprayParser
  106. def push [A, B, C] (a: ⇒ A, b: ⇒ B, c: ⇒ C) : Rule3[A, B, C]

    definition classes: Parser
  107. def push [A, B] (a: ⇒ A, b: ⇒ B) : Rule2[A, B]

    definition classes: Parser
  108. def push [A] (f: ⇒ A) : Rule1[A]

    definition classes: Parser
  109. def pushFromContext [A] (f: (org.parboiled.Context[_]) ⇒ A) : Rule1[A]

    definition classes: Parser
  110. def rule [T <: Rule] (label: String, options: RuleOption*)(block: ⇒ T)(implicit creator: (Matcher) ⇒ T) : T

    definition classes: Parser
  111. def rule [T <: Rule] (firstOption: RuleOption, more: RuleOption*)(block: ⇒ T)(implicit creator: (Matcher) ⇒ T) : T

    definition classes: Parser
  112. def rule [T <: Rule] (block: ⇒ T)(implicit creator: (Matcher) ⇒ T) : T

    definition classes: Parser
  113. def run (f: ⇒ Unit) : Rule0

    definition classes: Parser
  114. def str (chars: Array[Char]) : Rule0

    definition classes: Parser
  115. def str (s: String) : Rule0

    definition classes: Parser
  116. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  117. def test (f: ⇒ Boolean) : Rule0

    definition classes: Parser
  118. implicit def toRule (string: String) : Rule0

    attributes: implicit
    definition classes: HttpParser → Parser
  119. implicit def toRule (symbol: Symbol) : Rule0

    attributes: implicit
    definition classes: Parser
  120. implicit def toRule (chars: Array[Char]) : Rule0

    attributes: implicit
    definition classes: Parser
  121. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  122. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  123. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  124. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  125. def withContext [A, B, C, D, E, F, G, R] (f: (A, B, C, D, E, F, G, org.parboiled.Context[_]) ⇒ R) : WithContextAction7[A, B, C, D, E, F, G, R]

    definition classes: Parser
  126. def withContext [A, B, C, D, E, F, R] (f: (A, B, C, D, E, F, org.parboiled.Context[_]) ⇒ R) : WithContextAction6[A, B, C, D, E, F, R]

    definition classes: Parser
  127. def withContext [A, B, C, D, E, R] (f: (A, B, C, D, E, org.parboiled.Context[_]) ⇒ R) : WithContextAction5[A, B, C, D, E, R]

    definition classes: Parser
  128. def withContext [A, B, C, D, R] (f: (A, B, C, D, org.parboiled.Context[_]) ⇒ R) : WithContextAction4[A, B, C, D, R]

    definition classes: Parser
  129. def withContext [A, B, C, R] (f: (A, B, C, org.parboiled.Context[_]) ⇒ R) : WithContextAction3[A, B, C, R]

    definition classes: Parser
  130. def withContext [A, B, R] (f: (A, B, org.parboiled.Context[_]) ⇒ R) : WithContextAction2[A, B, R]

    definition classes: Parser
  131. def withContext [A, R] (f: (A, org.parboiled.Context[_]) ⇒ R) : WithContextAction1[A, R]

    definition classes: Parser
  132. def zeroOrMore [A, B] (sub: Rule2[A, B], separator: Rule0) : Rule1[List[(A, B)]]

    definition classes: Parser
  133. def zeroOrMore [A] (sub: Rule1[A], separator: Rule0) : Rule1[List[A]]

    definition classes: Parser
  134. def zeroOrMore (sub: Rule0, separator: Rule0) : Rule0

    definition classes: Parser
  135. def zeroOrMore [A, B] (sub: Rule2[A, B]) : Rule1[List[(A, B)]]

    definition classes: Parser
  136. def zeroOrMore [A] (sub: Rule1[A]) : Rule1[List[A]]

    definition classes: Parser
  137. def zeroOrMore [Z] (sub: ReductionRule1[Z, Z]) : ReductionRule1[Z, Z]

    definition classes: Parser
  138. def zeroOrMore (sub: Rule0) : Rule0

    definition classes: Parser

Inherited from XForwardedForHeader

Inherited from ContentTypeHeader

Inherited from AcceptRangesHeader

Inherited from AcceptLanguageHeader

Inherited from AcceptHeader

Inherited from AcceptEncodingHeader

Inherited from AcceptCharsetHeader

Inherited from CommonActions

Inherited from AdditionalRules

Inherited from ProtocolParameterRules

Inherited from SprayParser

Inherited from Parser

Inherited from AnyRef

Inherited from Any