Package akka.http.impl.engine.rendering
Class BodyPartRenderer
java.lang.Object
akka.http.impl.engine.rendering.BodyPartRenderer
INTERNAL API
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
randomBoundary
(int length, Random random) Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).static String
randomBoundaryWithDefaultRandom
(int length) Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).static String
Creates a new random number of default length and base64 encodes it (using a custom "safe" alphabet).static akka.stream.stage.GraphStage<akka.stream.FlowShape<Multipart.BodyPart,
akka.stream.scaladsl.Source<HttpEntity.ChunkStreamPart, Object>>> static akka.util.ByteString
strict
(scala.collection.immutable.Seq<Multipart.BodyPart.Strict> parts, String boundary, int partHeadersSizeHint, akka.event.LoggingAdapter log)
-
Constructor Details
-
BodyPartRenderer
public BodyPartRenderer()
-
-
Method Details
-
streamed
public static akka.stream.stage.GraphStage<akka.stream.FlowShape<Multipart.BodyPart,akka.stream.scaladsl.Source<HttpEntity.ChunkStreamPart, streamedObject>>> (String boundary, int partHeadersSizeHint, akka.event.LoggingAdapter _log) -
strict
public static akka.util.ByteString strict(scala.collection.immutable.Seq<Multipart.BodyPart.Strict> parts, String boundary, int partHeadersSizeHint, akka.event.LoggingAdapter log) -
randomBoundary
Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).- Parameters:
length
- (undocumented)random
- (undocumented)- Returns:
- (undocumented)
-
randomBoundaryWithDefaults
Creates a new random number of default length and base64 encodes it (using a custom "safe" alphabet).- Returns:
- (undocumented)
-
randomBoundaryWithDefaultRandom
Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).- Parameters:
length
- (undocumented)- Returns:
- (undocumented)
-