Packages

object Multipart

Source
Multipart.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Multipart
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def format(boundary: String, nioCharset: Charset, chunkSize: Int): Flow[Part[Source[ByteString, _]], ByteString, NotUsed]

    Provides a Formatting Flow which could be used to format a MultipartFormData.Part source to a multipart/form data body

  2. def randomBoundary(length: Int = 18, random: Random = ThreadLocalRandom.current()): String

    Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).

    Creates a new random number of the given length and base64 encodes it (using a custom "safe" alphabet).

    Exceptions thrown

    java.lang.IllegalArgumentException if the length is greater than 70 or less than 1 as specified in rfc2046

  3. def transform(body: Source[Part[Source[ByteString, _]], _], boundary: String): Source[ByteString, _]

    Transforms a Source[MultipartFormData.Part] to a Source[ByteString]