spray.http

HttpRequest

case class HttpRequest(method: HttpMethod = HttpMethods.GET, uri: Uri = Uri./, headers: List[HttpHeader] = immutable.this.Nil, entity: HttpEntity = HttpEntity.Empty, protocol: HttpProtocol = HttpProtocols.HTTP/1.1) extends HttpMessage with HttpRequestPart with Product with Serializable

Immutable HTTP request model.

Linear Supertypes
Serializable, Serializable, Product, Equals, HttpRequestPart, HttpMessage, HttpMessageEnd, HttpMessageStart, HttpMessagePart, HttpMessagePartWrapper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpRequest
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpRequestPart
  7. HttpMessage
  8. HttpMessageEnd
  9. HttpMessageStart
  10. HttpMessagePart
  11. HttpMessagePartWrapper
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpRequest(method: HttpMethod = HttpMethods.GET, uri: Uri = Uri./, headers: List[HttpHeader] = immutable.this.Nil, entity: HttpEntity = HttpEntity.Empty, protocol: HttpProtocol = HttpProtocols.HTTP/1.1)

Type Members

  1. type Self = HttpRequest

    Definition Classes
    HttpRequestHttpMessage

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def acceptableContentType(contentTypes: Seq[ContentType]): Option[ContentType]

    Determines whether one of the given content-types is accepted by the client.

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

  7. def acceptedCharsetRanges: List[HttpCharsetRange]

  8. def acceptedEncodingRanges: List[HttpEncodingRange]

  9. def acceptedMediaRanges: List[MediaRange]

  10. def ack: None.type

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def asPartStream(maxChunkSize: Long = Long.MaxValue): Stream[HttpMessagePart]

    Returns the message as if it was sent in chunks

    Returns the message as if it was sent in chunks

    Definition Classes
    HttpMessage
  13. def canBeRetried: Boolean

  14. def chunkedMessageStart: ChunkedRequestStart

    Returns the start part for this message

    Returns the start part for this message

    Definition Classes
    HttpRequestHttpMessage
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def connectionCloseExpected: Boolean

    Definition Classes
    HttpMessage
  17. def cookies: List[HttpCookie]

  18. def 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
  19. val entity: HttpEntity

    Definition Classes
    HttpRequestHttpMessage
  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  23. def header[T <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]

    Definition Classes
    HttpMessage
  24. val headers: List[HttpHeader]

    Definition Classes
    HttpRequestHttpMessage
  25. def isCharsetAccepted(charset: HttpCharset, ranges: List[HttpCharsetRange] = acceptedCharsetRanges): Boolean

    Determines whether the given charset is accepted by the client.

  26. def isEncodingAccepted(encoding: HttpEncoding, ranges: List[HttpEncodingRange] = acceptedEncodingRanges): Boolean

    Determines whether the given encoding is accepted by the client.

  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def isMediaTypeAccepted(mediaType: MediaType, ranges: List[MediaRange] = acceptedMediaRanges): Boolean

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

  29. def isRequest: Boolean

    Definition Classes
    HttpRequestHttpMessage
  30. def isResponse: Boolean

    Definition Classes
    HttpRequestHttpMessage
  31. def mapEntity(f: (HttpEntity) ⇒ HttpEntity): Self

    Definition Classes
    HttpMessage
  32. def mapHeaders(f: (List[HttpHeader]) ⇒ List[HttpHeader]): Self

    Definition Classes
    HttpMessageHttpMessageStart
  33. def message: HttpRequest

    Definition Classes
    HttpRequestHttpMessageHttpMessageStart
  34. def messagePart: HttpMessagePart

  35. val method: HttpMethod

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

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. val protocol: HttpProtocol

    Definition Classes
    HttpRequestHttpMessage
  40. def qValueForCharset(charset: HttpCharset, ranges: List[HttpCharsetRange] = acceptedCharsetRanges): Float

    Returns the q-value that the client (implicitly or explicitly) attaches to the given charset.

  41. def qValueForEncoding(encoding: HttpEncoding, ranges: List[HttpEncodingRange] = acceptedEncodingRanges): Float

    Returns the q-value that the client (implicitly or explicitly) attaches to the given encoding.

  42. def qValueForMediaType(mediaType: MediaType, ranges: List[MediaRange] = acceptedMediaRanges): Float

    Returns the q-value that the client (implicitly or explicitly) attaches to the given media-type.

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

    Definition Classes
    AnyRef
  44. val uri: Uri

  45. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def withAck(ack: Any): Confirmed

    Definition Classes
    HttpMessagePart
  49. def withDefaultHeaders(defaultHeaders: List[HttpHeader]): Self

    Definition Classes
    HttpMessage
  50. def withEffectiveUri(securedConnection: Boolean, defaultHostHeader: Host = Host.empty): HttpRequest

  51. def withEntity(entity: HttpEntity): HttpRequest

    Definition Classes
    HttpRequestHttpMessage
  52. def withHeaders(headers: List[HttpHeader]): HttpRequest

    Definition Classes
    HttpRequestHttpMessage
  53. def withHeaders(headers: HttpHeader*): Self

    Definition Classes
    HttpMessage
  54. def withHeadersAndEntity(headers: List[HttpHeader], entity: HttpEntity): HttpRequest

    Definition Classes
    HttpRequestHttpMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpRequestPart

Inherited from HttpMessage

Inherited from HttpMessageEnd

Inherited from HttpMessageStart

Inherited from HttpMessagePart

Inherited from HttpMessagePartWrapper

Inherited from AnyRef

Inherited from Any

Ungrouped