scalaz.http.request

Request

trait Request [IN[_]] extends AnyRef

HTTP request. RFC 2616 Section 5 Request.

Attributes
sealed
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Request
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Type Members

  1. trait Debug [OUT[_]] extends AnyRef

Abstract Value Members

  1. val body : IN[Byte]

    §

    Attributes
    abstract
  2. val headers : List[(RequestHeader, NonEmptyList[Char])]

    §

    Attributes
    abstract
  3. val line : Line

    §

    Attributes
    abstract

Concrete Value Members

  1. def ! [E] (p: String, e: ⇒ E): Validation[E, List[Char]]

    Returns the first occurrence of the given request parameter in the request URI or the given error value.

  2. def ! (p: String): Option[List[Char]]

    Returns the first occurrence of the given request parameter in the request URI.

  3. def !! [E] (p: String, e: ⇒ E): Validation[E, NonEmptyList[List[Char]]]

    Returns all occurrences of the given request parameter in the request URI or the given error value.

  4. def !! (p: String): List[List[Char]]

    Returns all occurrences of the given request parameter in the request URI.

  5. def !!|| (p: String)(implicit f: Foldable[IN]): List[List[Char]]

    Returns all occurrences of the given request parameter in the request URI if it exists or in the request body otherwise.

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

    Attributes
    final
    Definition Classes
    AnyRef
  7. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  8. def !? (p: String): Boolean

    Returns true if the given request parameter occurs in the request URI.

  9. def !| (p: String)(implicit f: Foldable[IN]): Option[List[Char]]

    Returns the first occurrence of the given request parameter in the request URI if it exists or in the request body otherwise.

  10. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  11. def - (h: RequestHeader): Request[IN]

    Deletes all headers of the given value from a request.

  12. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  13. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  14. def >> (b: IN[Byte]): Request[IN]

    Sets the body of a request.

  15. def ^!!^ : Kleisli[Option, String, NonEmptyList[List[Char]]]

    Returns all occurrences of a given request parameter in the request URI.

  16. def ^!!||^ (implicit f: Foldable[IN]): Kleisli[Option, String, NonEmptyList[List[Char]]]

    Returns all occurrences of a given request parameter in the request URI if it exists or in the request body otherwise.

  17. def ^!^ : Kleisli[Option, String, List[Char]]

    Returns the first occurrence of a given request parameter in the request URI.

  18. def ^!|^ (implicit f: Foldable[IN]): Kleisli[Option, String, List[Char]]

    Returns the first occurrence of a given request parameter in the request URI if it exists or in the request body otherwise.

  19. def ^|!^ (implicit f: Foldable[IN]): Kleisli[Option, String, List[Char]]

    Returns the first occurrence of a given request parameter in the request body if it exists or in the request URI otherwise.

  20. def ^|^ (implicit f: Foldable[IN]): Kleisli[Option, String, List[Char]]

    Returns the first occurrence of a given request parameter in the request body.

  21. def ^||!!^ (implicit f: Foldable[IN]): Kleisli[Option, String, NonEmptyList[List[Char]]]

    Returns all occurrences of a given request parameter in the request body if it exists or in the request URI otherwise.

  22. def ^||^ (implicit f: Foldable[IN]): Kleisli[Option, String, NonEmptyList[List[Char]]]

    Returns all occurrences of a given request parameter in the request body.

  23. def apply (v: Version): Request[IN]

    Sets the request version of the status line of a request.

  24. def apply (u: Uri): Request[IN]

    Sets the request URI of the status line of a request.

  25. def apply (m: Method): Request[IN]

    Sets the request method of the status line of a request.

  26. def apply (h: RequestHeader): Option[NonEmptyList[Char]]

    Returns the first value that corresponds to the given request header.

  27. def apply (l: Line): Request[IN]

    Sets the status line of a request.

  28. def apply (h: RequestHeader, v: NonEmptyList[Char]): Request[IN]

    Adds the given request header and value to a request.

  29. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  30. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. def debug [OUT[_]] : Debug[OUT]

    Create a response that details the parts of the request in a XHTML document.

  32. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  33. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  36. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  37. lazy val headersMap : Map[RequestHeader, NonEmptyList[NonEmptyList[Char]]]

    A map of request header values offering optimal seek time.

  38. lazy val headersMapHeads : Map[RequestHeader, NonEmptyList[Char]]

    A map of the first request header values offering optimal seek time.

  39. def isDelete : Boolean

    Returns true if this request method is DELETE.

  40. def isGet : Boolean

    Returns true if this request method is GET.

  41. def isHead : Boolean

    Returns true if this request method is HEAD.

  42. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  43. def isInternetExplorer : Boolean

    Inspects the user-agent header to determine if the request was made by Microsoft Internet Explorer.

  44. def isOptions : Boolean

    Returns true if this request method is OPTIONS.

  45. def isPost : Boolean

    Returns true if this request method is POST.

  46. def isPut : Boolean

    Returns true if this request method is PUT.

  47. def isTrace : Boolean

    Returns true if this request method is TRACE.

  48. def method : Method

    The request method of the status line.

  49. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  50. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  51. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  52. def parametersMap : Option[Map[List[Char], NonEmptyList[List[Char]]]]

    The request URI parameters.

  53. def parametersMapHeads : Option[Map[List[Char], List[Char]]]

    The request URI parameters with only the first occurring value.

  54. def parts : List[String]

    Returns the components of the path split by '/', stripped of empty components

  55. def path (f: (NonEmptyList[Char]) ⇒ Boolean): Boolean

    Returns true if the request path of the request URI satisfies the given condition.

  56. def path : NonEmptyList[Char]

    The request path of the request URI of the status line.

  57. def pathEquals (s: String): Boolean

    Returns true if the request path of the request URI equals the given value.

  58. def pathExtension : String

    Returns the path extension - characters after the last dot (.

    Returns the path extension - characters after the last dot (.) in the path.

  59. def pathStartsWith (s: String): Boolean

    Returns true if the request path starts with the given value.

  60. def post (implicit f: Foldable[IN]): AnyRef { ... /* 5 definitions in type refinement */ }

    Provides look up for POST request parameters in the request body.

    Provides look up for POST request parameters in the request body. Only the first invocation uses the given fold-left and subsequent invocations look-up using a memoisation table (scoped to each request).

  61. def queryString (f: (List[Char]) ⇒ Boolean): Boolean

    Returns true if the query string of the request URI satisfies the given condition.

  62. def queryString : Option[List[Char]]

    The query string of the request URI of the status line.

  63. def queryStringEquals (s: String): Boolean

    Returns true if the query string of the request URI equals the given value.

  64. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  65. def toString (): String

    Definition Classes
    AnyRef → Any
  66. def uri : Uri

    The request URI of the status line.

  67. def userAgent : Option[NonEmptyList[Char]]

    The user-agent request header value.

  68. def version : Version

    The request version of the status line.

  69. def versionMajor : Digit

    The request version major of the status line.

  70. def versionMinor : Digit

    The request version minor of the status line.

  71. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  74. def | (p: String)(implicit f: Foldable[IN]): Option[List[Char]]

    Returns the first occurrence of the given request parameter in the request body.

  75. def |! (p: String)(implicit f: Foldable[IN]): Option[List[Char]]

    Returns the first occurrence of the given request parameter in the request body if it exists or in the request URI otherwise.

  76. def |+| (b: IN[Byte])(implicit s: Semigroup[IN[Byte]]): Request[IN]

    Appends the given value to the body of a request.

  77. def |? (p: String)(implicit f: Foldable[IN]): Boolean

    Returns true if the given request parameter occurs in the request body.

  78. def || (p: String)(implicit f: Foldable[IN]): List[List[Char]]

    Returns all occurrences of the given request parameter in the request body.

  79. def ||!! (p: String)(implicit f: Foldable[IN]): List[List[Char]]

    Returns all occurrences of the given request parameter in the request body if it exists or in the request URI otherwise.

  80. def ~!? (p: String): Boolean

    Returns false if the given request parameter occurs in the request URI.

  81. def ~|? (p: String)(implicit f: Foldable[IN]): Boolean

    Returns false if the given request parameter occurs in the request body.

Inherited from AnyRef

Inherited from Any