akka.http.scaladsl.model

HttpMessage

sealed trait HttpMessage extends javadsl.model.HttpMessage

Common base class of HttpRequest and HttpResponse.

Source
HttpMessage.scala
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpMessage
  2. HttpMessage
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type MessageTransformations[Self] = javadsl.model.HttpMessage.MessageTransformations[Self]

    Attributes
    protected
    Definition Classes
    HttpMessage
  2. abstract type Self <: HttpMessage

Abstract Value Members

  1. abstract def entity(): ResponseEntity

    Definition Classes
    HttpMessageHttpMessage
  2. abstract def headers: Seq[HttpHeader]

  3. abstract def isRequest(): Boolean

    Definition Classes
    HttpMessageHttpMessage
  4. abstract def isResponse(): Boolean

    Definition Classes
    HttpMessageHttpMessage
  5. abstract def protocol(): HttpProtocol

    Definition Classes
    HttpMessageHttpMessage
  6. abstract def self: Self

  7. abstract def withEntity(entity: MessageEntity): Self

    Returns a copy of this message with the entity set to the given one.

  8. abstract def withHeaders(headers: Seq[HttpHeader]): Self

    Returns a copy of this message with the list of headers set to the given ones.

  9. abstract def withHeadersAndEntity(headers: Seq[HttpHeader], entity: MessageEntity): Self

    Returns a copy of this message with the entity and headers set to the given ones.

Concrete 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. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from HttpMessage to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (HttpMessage, B)

    Implicit information
    This member is added by an implicit conversion from HttpMessage to ArrowAssoc[HttpMessage] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. def addHeader(header: javadsl.model.HttpHeader): Self

  9. def addHeaders(headers: Iterable[javadsl.model.HttpHeader]): Self

    Java API

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

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

    Returns true if this message is an:

    Returns true if this message is an:

    • HttpRequest and the client does not want to reuse the connection after the response for this request has been received
    • HttpResponse and the server will close the connection after this response
  13. 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.

  14. def ensuring(cond: (HttpMessage) ⇒ Boolean, msg: ⇒ Any): HttpMessage

    Implicit information
    This member is added by an implicit conversion from HttpMessage to Ensuring[HttpMessage] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (HttpMessage) ⇒ Boolean): HttpMessage

    Implicit information
    This member is added by an implicit conversion from HttpMessage to Ensuring[HttpMessage] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): HttpMessage

    Implicit information
    This member is added by an implicit conversion from HttpMessage to Ensuring[HttpMessage] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): HttpMessage

    Implicit information
    This member is added by an implicit conversion from HttpMessage to Ensuring[HttpMessage] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from HttpMessage to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getHeader(headerName: String): Option[javadsl.model.HttpHeader]

    Java API

    Java API

    Definition Classes
    HttpMessageHttpMessage
  24. def getHeader[T <: javadsl.model.HttpHeader](headerClass: Class[T]): Option[T]

    Java API

    Java API

    Definition Classes
    HttpMessageHttpMessage
  25. def getHeaders(): Iterable[javadsl.model.HttpHeader]

    Java API

    Java API

    Definition Classes
    HttpMessageHttpMessage
  26. def hashCode(): Int

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

    Returns the first header of the given type if there is one

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def mapEntity(f: (HttpEntity) ⇒ MessageEntity): Self

    Returns a copy of this message with the entity transformed by the given function

  30. def mapHeaders(f: (Seq[HttpHeader]) ⇒ Seq[HttpHeader]): Self

    Returns a copy of this message with the list of headers transformed by the given function

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

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

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

    Definition Classes
    AnyRef
  34. def removeHeader(headerName: String): Self

    Removes the header with the given name (case-insensitive)

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

    Definition Classes
    AnyRef
  36. def toStrict(timeout: FiniteDuration)(implicit ec: ExecutionContext, fm: FlowMaterializer): Future[Self]

    Returns a sharable and serializable copy of this message with a strict entity.

  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def withDefaultHeaders(defaultHeaders: Seq[HttpHeader]): Self

    Returns a new message that contains all of the given default headers which didn't already exist (by case-insensitive header name) in this message.

  42. def withDefaultHeaders(defaultHeaders: HttpHeader*): Self

    Returns a new message that contains all of the given default headers which didn't already exist (by case-insensitive header name) in this message.

  43. def withEntity(contentType: javadsl.model.ContentType, file: File): Self

  44. def withEntity(contentType: javadsl.model.ContentType, bytes: ByteString): Self

  45. def withEntity(contentType: javadsl.model.ContentType, bytes: Array[Byte]): Self

  46. def withEntity(contentType: javadsl.model.ContentType, string: String): Self

  47. def withEntity(bytes: ByteString): Self

  48. def withEntity(bytes: Array[Byte]): Self

  49. def withEntity(string: String): Self

  50. def withHeaders(headers: HttpHeader*): Self

    Returns a copy of this message with the list of headers set to the given ones.

  51. def [B](y: B): (HttpMessage, B)

    Implicit information
    This member is added by an implicit conversion from HttpMessage to ArrowAssoc[HttpMessage] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from HttpMessage to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (httpMessage: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from HttpMessage to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (httpMessage: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: HttpMessage

    Implicit information
    This member is added by an implicit conversion from HttpMessage to ArrowAssoc[HttpMessage] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (httpMessage: ArrowAssoc[HttpMessage]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: HttpMessage

    Implicit information
    This member is added by an implicit conversion from HttpMessage to Ensuring[HttpMessage] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (httpMessage: Ensuring[HttpMessage]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from javadsl.model.HttpMessage

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from HttpMessage to StringAdd

Inherited by implicit conversion any2stringfmt from HttpMessage to StringFormat

Inherited by implicit conversion any2ArrowAssoc from HttpMessage to ArrowAssoc[HttpMessage]

Inherited by implicit conversion any2Ensuring from HttpMessage to Ensuring[HttpMessage]

Ungrouped