sealed trait HttpEntity extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpEntity
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def as(contentType: String): HttpEntity
Return this entity as the given content type.
- abstract def asJava: http.HttpEntity
Convert this entity to its Java counterpart.
- abstract def contentLength: Option[Long]
The content length of the entity, if known.
- abstract def contentType: Option[String]
The content type of the entity, if known.
- abstract def dataStream: Source[ByteString, _]
The entity as a data stream.
- abstract def isKnownEmpty: Boolean
Whether it is known if this entity is empty or not.
Whether it is known if this entity is empty or not.
If this returns true, then the entity is definitely empty. If it returns false, the entity may or may not be empty.
Concrete Value Members
- def consumeData(implicit mat: Materializer): Future[ByteString]
Consume the data from this entity.
An HTTP entity.
HTTP entities come in three flavors, HttpEntity.Strict, HttpEntity.Streamed and HttpEntity.Chunked.