final case class Strict(contentType: ContentType, data: ByteString) extends javadsl.model.HttpEntity.Strict with UniversalEntity with Product with Serializable
The model for the entity of a "regular" unchunked HTTP message with known, fixed data.
- Source
- HttpEntity.scala
- Alphabetic
- By Inheritance
- Strict
- Serializable
- Serializable
- Product
- Equals
- UniversalEntity
- BodyPartEntity
- RequestEntity
- ResponseEntity
- HttpEntity
- Strict
- UniversalEntity
- BodyPartEntity
- RequestEntity
- ResponseEntity
- HttpEntity
- AnyRef
- Any
- by HttpEntityScalaDSLSugar
- by fromJava
- by HttpEntityScalaDSLSugar
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Strict(contentType: ContentType, data: ByteString)
Value Members
-
def
contentLength: Long
- Definition Classes
- Strict → UniversalEntity
-
def
contentLengthOption: Option[Long]
Some(content length) if a length is defined for this entity, None otherwise.
Some(content length) if a length is defined for this entity, None otherwise. A length is only defined for Strict and Default entity types.
In many cases it's dangerous to rely on the (non-)existence of a content-length. HTTP intermediaries like (transparent) proxies are allowed to change the transfer-encoding which can result in the entity being delivered as another type as expected.
- Definition Classes
- UniversalEntity → HttpEntity
-
val
contentType: ContentType
The
ContentType
associated with this entity.The
ContentType
associated with this entity.- Definition Classes
- Strict → HttpEntity
- val data: ByteString
-
def
dataBytes: Source[ByteString, NotUsed]
A stream of the data of this entity.
A stream of the data of this entity.
- Definition Classes
- Strict → HttpEntity
-
def
discardBytes(mat: Materializer): HttpMessage.DiscardedEntity
Discards the entities data bytes by running the
dataBytes
Source contained in thisentity
.Discards the entities data bytes by running the
dataBytes
Source contained in thisentity
.Note: It is crucial that entities are either discarded, or consumed by running the underlying akka.stream.scaladsl.Source as otherwise the lack of consuming of the data will trigger back-pressure to the underlying TCP connection (as designed), however possibly leading to an idle-timeout that will close the connection, instead of just having ignored the data.
Warning: It is not allowed to discard and/or consume the
entity.dataBytes
more than once as the stream is directly attached to the "live" incoming data source from the underlying TCP connection. Allowing it to be consumable twice would require buffering the incoming data, thus defeating the purpose of its streaming nature. If the dataBytes source is materialized a second time, it will fail with an "stream can cannot be materialized more than once" exception.When called on
Strict
entities or sources whose values can be buffered in memory, the above warnings can be ignored. Repeated materialization is not necessary in this case, avoiding the mentioned exceptions due to the data being held in memory.In future versions, more automatic ways to warn or resolve these situations may be introduced, see issue #18716.
- Definition Classes
- HttpEntity → HttpEntity
-
def
getContentLengthOption(): OptionalLong
Java API
Java API
- Definition Classes
- HttpEntity → HttpEntity
-
def
getContentType(): javadsl.model.ContentType
Java API
Java API
- Definition Classes
- HttpEntity → HttpEntity
-
def
getData(): ByteString
Java API
Java API
- Definition Classes
- Strict → Strict
-
def
getDataBytes(): Source[ByteString, AnyRef]
Java API
Java API
- Definition Classes
- HttpEntity → HttpEntity
-
def
isChunked(): Boolean
Returns if this entity is a subtype of HttpEntityChunked.
Returns if this entity is a subtype of HttpEntityChunked.
- Definition Classes
- HttpEntity → HttpEntity
-
def
isCloseDelimited(): Boolean
Returns if this entity is a subtype of HttpEntityCloseDelimited.
Returns if this entity is a subtype of HttpEntityCloseDelimited.
- Definition Classes
- HttpEntity → HttpEntity
-
def
isDefault(): Boolean
Returns if this entity is a subtype of HttpEntityDefault.
Returns if this entity is a subtype of HttpEntityDefault.
- Definition Classes
- HttpEntity → HttpEntity
-
def
isIndefiniteLength(): Boolean
Returns if this entity is a subtype of HttpEntityIndefiniteLength.
Returns if this entity is a subtype of HttpEntityIndefiniteLength.
- Definition Classes
- HttpEntity → HttpEntity
-
def
isKnownEmpty(): Boolean
Determines whether this entity is known to be empty.
Determines whether this entity is known to be empty.
- Definition Classes
- Strict → HttpEntity → HttpEntity
-
def
isStrict(): Boolean
Returns if this entity is a subtype of HttpEntityStrict.
Returns if this entity is a subtype of HttpEntityStrict.
- Definition Classes
- Strict → HttpEntity → HttpEntity
-
def
productPrefix: String
- Definition Classes
- Strict → Product
-
def
toStrict(timeout: FiniteDuration)(implicit fm: Materializer): Future[Strict]
Collects all possible parts and returns a potentially future Strict entity for easier processing.
Collects all possible parts and returns a potentially future Strict entity for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout, or with a EntityStreamException when the end of the entity is not reached within the maximum number of bytes as configured in
akka.http.parsing.max-to-strict-bytes
. Not that this method does not support different defaults for client- and server use: if you want that, use thetoStrict
method and pass in an explicit maximum number of bytes.- Definition Classes
- Strict → HttpEntity
-
def
toStrict(timeoutMillis: Long, maxBytes: Long, materializer: Materializer): CompletionStage[javadsl.model.HttpEntity.Strict]
Java API
Java API
- Definition Classes
- HttpEntity → HttpEntity
-
def
toStrict(timeoutMillis: Long, materializer: Materializer): CompletionStage[javadsl.model.HttpEntity.Strict]
Java API
Java API
- Definition Classes
- HttpEntity → HttpEntity
-
def
toStrict(timeout: FiniteDuration, maxBytes: Long)(implicit fm: Materializer): Future[Strict]
Collects all possible parts and returns a potentially future Strict entity for easier processing.
Collects all possible parts and returns a potentially future Strict entity for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout, or with a EntityStreamException when the end of the entity is not reached within the maximum number of bytes.
- Definition Classes
- HttpEntity
-
def
toString(): String
- Definition Classes
- Strict → AnyRef → Any
-
def
transformDataBytes(transformer: Flow[ByteString, ByteString, Any]): MessageEntity
Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer.
Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer. For a
Chunked
entity, the chunks will be transformed one by one keeping the chunk metadata (but may introduce an extra chunk before theLastChunk
iftransformer.onTermination
returns additional data).This method may only throw an exception if the
transformer
function throws an exception while creating the transformer. Any other errors are reported through the new entity data stream.- Definition Classes
- Strict → RequestEntity → ResponseEntity → HttpEntity
-
def
transformDataBytes(newContentLength: Long, transformer: Flow[ByteString, ByteString, Any]): UniversalEntity
Transforms this' entities data bytes with a transformer that will produce exactly the number of bytes given as
newContentLength
.Transforms this' entities data bytes with a transformer that will produce exactly the number of bytes given as
newContentLength
.- Definition Classes
- HttpEntity
-
def
withContentType(contentType: ContentType): Strict
Creates a copy of this HttpEntity with the
contentType
overridden with the given one.Creates a copy of this HttpEntity with the
contentType
overridden with the given one.- Definition Classes
- Strict → UniversalEntity → BodyPartEntity → RequestEntity → ResponseEntity → HttpEntity
-
def
withContentType(contentType: javadsl.model.ContentType): HttpEntity
Java API
Java API
- Definition Classes
- HttpEntity → HttpEntity
-
def
withSizeLimit(maxBytes: Long): UniversalEntity
- Definition Classes
- Strict → UniversalEntity → BodyPartEntity → RequestEntity → ResponseEntity → HttpEntity → HttpEntity
-
def
withoutSizeLimit(): UniversalEntity
See HttpEntity#withoutSizeLimit
- Definition Classes
- Strict → UniversalEntity → BodyPartEntity → RequestEntity → ResponseEntity → HttpEntity → HttpEntity
Shadowed Implicit Value Members
-
def
contentLengthOption: Option[Long]
Some(content length) if a length is defined for this entity, None otherwise.
Some(content length) if a length is defined for this entity, None otherwise. A length is only defined for Strict and Default entity types.
In many cases it's dangerous to rely on the (non-)existence of a content-length. HTTP intermediaries like (transparent) proxies are allowed to change the transfer-encoding which can result in the entity being delivered as another type as expected.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).contentLengthOption
- Definition Classes
- HttpEntity
-
def
contentType: ContentType
The
ContentType
associated with this entity.The
ContentType
associated with this entity.- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).contentType
- Definition Classes
- HttpEntity
-
def
dataBytes: Source[ByteString, Any]
A stream of the data of this entity.
A stream of the data of this entity.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).dataBytes
- Definition Classes
- HttpEntity
-
def
discardBytes()(implicit mat: Materializer): HttpMessage.DiscardedEntity
Discards the entities data bytes by running the
dataBytes
Source contained in thisentity
.Discards the entities data bytes by running the
dataBytes
Source contained in thisentity
.Note: It is crucial that entities are either discarded, or consumed by running the underlying akka.stream.scaladsl.Source as otherwise the lack of consuming of the data will trigger back-pressure to the underlying TCP connection (as designed), however possibly leading to an idle-timeout that will close the connection, instead of just having ignored the data.
Warning: It is not allowed to discard and/or consume the
entity.dataBytes
more than once as the stream is directly attached to the "live" incoming data source from the underlying TCP connection. Allowing it to be consumable twice would require buffering the incoming data, thus defeating the purpose of its streaming nature. If the dataBytes source is materialized a second time, it will fail with an "stream can cannot be materialized more than once" exception.In future versions, more automatic ways to warn or resolve these situations may be introduced, see issue #18716.
- Implicit
- This member is added by an implicit conversion from Strict to HttpEntityScalaDSLSugar performed by method HttpEntityScalaDSLSugar in akka.http.scaladsl.model.HttpEntity.
- 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:(strict: HttpEntityScalaDSLSugar).discardBytes()(mat)
- Definition Classes
- HttpEntityScalaDSLSugar
-
def
discardBytes(mat: Materializer): HttpMessage.DiscardedEntity
Discards the entities data bytes by running the
dataBytes
Source contained in thisentity
.Discards the entities data bytes by running the
dataBytes
Source contained in thisentity
.Note: It is crucial that entities are either discarded, or consumed by running the underlying akka.stream.scaladsl.Source as otherwise the lack of consuming of the data will trigger back-pressure to the underlying TCP connection (as designed), however possibly leading to an idle-timeout that will close the connection, instead of just having ignored the data.
Warning: It is not allowed to discard and/or consume the
entity.dataBytes
more than once as the stream is directly attached to the "live" incoming data source from the underlying TCP connection. Allowing it to be consumable twice would require buffering the incoming data, thus defeating the purpose of its streaming nature. If the dataBytes source is materialized a second time, it will fail with an "stream can cannot be materialized more than once" exception.When called on
Strict
entities or sources whose values can be buffered in memory, the above warnings can be ignored. Repeated materialization is not necessary in this case, avoiding the mentioned exceptions due to the data being held in memory.In future versions, more automatic ways to warn or resolve these situations may be introduced, see issue #18716.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).discardBytes(mat)
- Definition Classes
- HttpEntity → HttpEntity
-
def
discardBytes()(implicit mat: Materializer): HttpMessage.DiscardedEntity
Discards the entities data bytes by running the
dataBytes
Source contained in thisentity
.Discards the entities data bytes by running the
dataBytes
Source contained in thisentity
.Note: It is crucial that entities are either discarded, or consumed by running the underlying akka.stream.scaladsl.Source as otherwise the lack of consuming of the data will trigger back-pressure to the underlying TCP connection (as designed), however possibly leading to an idle-timeout that will close the connection, instead of just having ignored the data.
Warning: It is not allowed to discard and/or consume the
entity.dataBytes
more than once as the stream is directly attached to the "live" incoming data source from the underlying TCP connection. Allowing it to be consumable twice would require buffering the incoming data, thus defeating the purpose of its streaming nature. If the dataBytes source is materialized a second time, it will fail with an "stream can cannot be materialized more than once" exception.In future versions, more automatic ways to warn or resolve these situations may be introduced, see issue #18716.
- Implicit
- This member is added by an implicit conversion from Strict to HttpEntityScalaDSLSugar performed by method HttpEntityScalaDSLSugar in akka.http.scaladsl.model.HttpEntity.
- 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:(strict: HttpEntityScalaDSLSugar).discardBytes()(mat)
- Definition Classes
- HttpEntityScalaDSLSugar
-
def
getContentLengthOption(): OptionalLong
Java API
Java API
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).getContentLengthOption()
- Definition Classes
- HttpEntity → HttpEntity
-
def
getContentType(): javadsl.model.ContentType
Java API
Java API
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).getContentType()
- Definition Classes
- HttpEntity → HttpEntity
-
def
getDataBytes(): Source[ByteString, AnyRef]
Java API
Java API
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).getDataBytes()
- Definition Classes
- HttpEntity → HttpEntity
-
val
httpEntity: HttpEntity
- Implicit
- This member is added by an implicit conversion from Strict to HttpEntityScalaDSLSugar performed by method HttpEntityScalaDSLSugar in akka.http.scaladsl.model.HttpEntity.
- 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:(strict: HttpEntityScalaDSLSugar).httpEntity
- Definition Classes
- HttpEntityScalaDSLSugar
-
val
httpEntity: HttpEntity
- Implicit
- This member is added by an implicit conversion from Strict to HttpEntityScalaDSLSugar performed by method HttpEntityScalaDSLSugar in akka.http.scaladsl.model.HttpEntity.
- 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:(strict: HttpEntityScalaDSLSugar).httpEntity
- Definition Classes
- HttpEntityScalaDSLSugar
-
def
isChunked(): Boolean
Returns if this entity is a subtype of HttpEntityChunked.
Returns if this entity is a subtype of HttpEntityChunked.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).isChunked()
- Definition Classes
- HttpEntity → HttpEntity
-
def
isCloseDelimited(): Boolean
Returns if this entity is a subtype of HttpEntityCloseDelimited.
Returns if this entity is a subtype of HttpEntityCloseDelimited.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).isCloseDelimited()
- Definition Classes
- HttpEntity → HttpEntity
-
def
isDefault(): Boolean
Returns if this entity is a subtype of HttpEntityDefault.
Returns if this entity is a subtype of HttpEntityDefault.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).isDefault()
- Definition Classes
- HttpEntity → HttpEntity
-
def
isIndefiniteLength(): Boolean
Returns if this entity is a subtype of HttpEntityIndefiniteLength.
Returns if this entity is a subtype of HttpEntityIndefiniteLength.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).isIndefiniteLength()
- Definition Classes
- HttpEntity → HttpEntity
-
def
isKnownEmpty(): Boolean
Determines whether this entity is known to be empty.
Determines whether this entity is known to be empty.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).isKnownEmpty()
- Definition Classes
- HttpEntity → HttpEntity
-
def
isStrict(): Boolean
Returns if this entity is a subtype of HttpEntityStrict.
Returns if this entity is a subtype of HttpEntityStrict.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).isStrict()
- Definition Classes
- HttpEntity → HttpEntity
-
def
toStrict(timeoutMillis: Long, maxBytes: Long, materializer: Materializer): CompletionStage[javadsl.model.HttpEntity.Strict]
Java API
Java API
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).toStrict(timeoutMillis, maxBytes, materializer)
- Definition Classes
- HttpEntity → HttpEntity
-
def
toStrict(timeoutMillis: Long, materializer: Materializer): CompletionStage[javadsl.model.HttpEntity.Strict]
Java API
Java API
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).toStrict(timeoutMillis, materializer)
- Definition Classes
- HttpEntity → HttpEntity
-
def
toStrict(timeout: FiniteDuration, maxBytes: Long)(implicit fm: Materializer): Future[Strict]
Collects all possible parts and returns a potentially future Strict entity for easier processing.
Collects all possible parts and returns a potentially future Strict entity for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout, or with a EntityStreamException when the end of the entity is not reached within the maximum number of bytes.
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).toStrict(timeout, maxBytes)(fm)
- Definition Classes
- HttpEntity
-
def
toStrict(timeout: FiniteDuration)(implicit fm: Materializer): Future[Strict]
Collects all possible parts and returns a potentially future Strict entity for easier processing.
Collects all possible parts and returns a potentially future Strict entity for easier processing. The Future is failed with an TimeoutException if the stream isn't completed after the given timeout, or with a EntityStreamException when the end of the entity is not reached within the maximum number of bytes as configured in
akka.http.parsing.max-to-strict-bytes
. Not that this method does not support different defaults for client- and server use: if you want that, use thetoStrict
method and pass in an explicit maximum number of bytes.- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).toStrict(timeout)(fm)
- Definition Classes
- HttpEntity
-
def
transformDataBytes(newContentLength: Long, transformer: Flow[ByteString, ByteString, Any]): UniversalEntity
Transforms this' entities data bytes with a transformer that will produce exactly the number of bytes given as
newContentLength
.Transforms this' entities data bytes with a transformer that will produce exactly the number of bytes given as
newContentLength
.- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).transformDataBytes(newContentLength, transformer)
- Definition Classes
- HttpEntity
-
def
transformDataBytes(transformer: Flow[ByteString, ByteString, Any]): ResponseEntity
Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer.
Returns a copy of the given entity with the ByteString chunks of this entity transformed by the given transformer. For a
Chunked
entity, the chunks will be transformed one by one keeping the chunk metadata (but may introduce an extra chunk before theLastChunk
iftransformer.onTermination
returns additional data).This method may only throw an exception if the
transformer
function throws an exception while creating the transformer. Any other errors are reported through the new entity data stream.- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).transformDataBytes(transformer)
- Definition Classes
- ResponseEntity → HttpEntity
-
def
withContentType(contentType: javadsl.model.ContentType): HttpEntity
Java API
Java API
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).withContentType(contentType)
- Definition Classes
- HttpEntity → HttpEntity
-
def
withContentType(contentType: ContentType): ResponseEntity
Creates a copy of this HttpEntity with the
contentType
overridden with the given one.Creates a copy of this HttpEntity with the
contentType
overridden with the given one.- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).withContentType(contentType)
- Definition Classes
- ResponseEntity → HttpEntity
-
def
withSizeLimit(maxBytes: Long): ResponseEntity
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).withSizeLimit(maxBytes)
- Definition Classes
- ResponseEntity → HttpEntity → HttpEntity
-
def
withoutSizeLimit(): ResponseEntity
See HttpEntity#withoutSizeLimit
- Implicit
- This member is added by an implicit conversion from Strict to ResponseEntity performed by method fromJava in akka.http.scaladsl.model.ResponseEntity.
- 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:(strict: ResponseEntity).withoutSizeLimit()
- Definition Classes
- ResponseEntity → HttpEntity → HttpEntity