cc.spray.http

HttpRequest

case class HttpRequest (method: HttpMethod, uri: String, headers: List[HttpHeader], content: Option[HttpContent], remoteHost: Option[HttpIp], version: Option[HttpVersion]) extends HttpMessage with Product with Serializable

Sprays immutable model of an HTTP request.

Linear Supertypes
Serializable, Serializable, Product, Equals, HttpMessage, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HttpRequest
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpMessage
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpRequest (method: HttpMethod, uri: String, headers: List[HttpHeader], content: Option[HttpContent], remoteHost: Option[HttpIp], version: Option[HttpVersion])

Value Members

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

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

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

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

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

    Attributes
    final
    Definition Classes
    Any
  6. lazy val URI : URI

  7. def acceptableContentType (contentType: ContentType): Option[ContentType]

    Determines whether the given content-type is accepted by the client.

    Determines whether the given content-type is accepted by the client. If the given content-type does not contain a charset an accepted charset is selected, i.e. the method guarantees that, if a content-type instance is returned within the option it will contain a charset.

  8. def acceptedCharset : HttpCharset

    Returns a charset that is accepted by the client.

  9. lazy val acceptedCharsetRanges : List[HttpCharsetRange]

  10. lazy val acceptedEncodingRanges : List[HttpEncodingRange]

  11. lazy val acceptedMediaRanges : List[MediaRange]

  12. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  13. def authority : String

  14. def canEqual (arg0: Any): Boolean

    Definition Classes
    HttpRequest → Equals
  15. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. val content : Option[HttpContent]

    The entity body of the request or response.

    The entity body of the request or response.

    Definition Classes
    HttpRequestHttpMessage
  17. lazy val encoding : HttpEncoding

    The content encoding as specified by the Content-Encoding header.

    The content encoding as specified by the Content-Encoding header. If no Content-Encoding header is present the default value 'identity' is returned.

    Definition Classes
    HttpMessage
  18. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    HttpRequest → Equals → AnyRef → Any
  20. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def fragment : String

  22. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  23. def hashCode (): Int

    Definition Classes
    HttpRequest → AnyRef → Any
  24. val headers : List[HttpHeader]

    The HTTP headers of the request or response.

    The HTTP headers of the request or response.

    Definition Classes
    HttpRequestHttpMessage
  25. def host : String

  26. def isCharsetAccepted (charset: HttpCharset): Boolean

    Determines whether the given charset is accepted by the client.

  27. def isContentTypeAccepted (ct: ContentType): Boolean

    Determines whether the given content-type is accepted by the client.

  28. def isEncodingAccepted (encoding: HttpEncoding): Boolean

    Determines whether the given encoding is accepted by the client.

  29. def isEncodingSpecified : Boolean

    Returns true if a Content-Encoding header is present.

    Returns true if a Content-Encoding header is present.

    Definition Classes
    HttpMessage
  30. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  31. def isMediaTypeAccepted (mediaType: MediaType): Boolean

    Determines whether the given mediatype is accepted by the client.

  32. def isUriAbsolute : Boolean

  33. def isUriOpaque : Boolean

  34. val method : HttpMethod

  35. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  38. def path : String

  39. def port : Int

  40. def productArity : Int

    Definition Classes
    HttpRequest → Product
  41. def productElement (arg0: Int): Any

    Definition Classes
    HttpRequest → Product
  42. def productIterator : Iterator[Any]

    Definition Classes
    Product
  43. def productPrefix : String

    Definition Classes
    HttpRequest → Product
  44. def query : String

  45. lazy val queryParams : Map[String, String]

  46. val remoteHost : Option[HttpIp]

  47. def scheme : String

  48. def schemeSpecificPart : String

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

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

    Definition Classes
    HttpRequest → AnyRef → Any
  51. val uri : String

  52. def userInfo : String

  53. val version : Option[HttpVersion]

  54. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  57. def withUri (scheme: String = this.scheme, userInfo: String = this.userInfo, host: String = this.host, port: Int = this.port, path: String = this.path, query: String = this.query, fragment: String = this.fragment): HttpRequest

  58. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpMessage

Inherited from AnyRef

Inherited from Any