Packages

p

org.http4s

multipart

package multipart

This package is the start of a multipart implementation for http4s. It is still deficient in a few ways:

- All encoding is chunked transfers, except for entities small enough to fit into the blaze buffer. This irritates some server implementations.

- When decoding, chunks are kept in memory. Large ones should be buffered to a temp file.

- It's a bit handwavy around character sets. Things probably go horribly wrong if you're not UTF-8.

- This module is lightly tested, and its API should be considered experimental.

Enter this package at your own risk, but we'd love the feedback.

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

Type Members

  1. final case class Boundary(value: String) extends AnyVal with Product with Serializable
  2. final case class Multipart[F[_]](parts: Vector[Part[F]], boundary: Boundary) extends Product with Serializable

    Create a new multipart from a vector of parts and a boundary.

    Create a new multipart from a vector of parts and a boundary.

    To create Multipart values from a generated boundary, see the Multiparts algebra.

  3. trait Multiparts[F[_]] extends AnyRef

    An algebra for creating multipart values and boundaries.

    An algebra for creating multipart values and boundaries.

    A single instance may be shared by the entire application.

  4. final case class Part[F[_]](headers: Headers, body: Stream[F, Byte]) extends Media[F] with Product with Serializable

Value Members

  1. object Boundary extends Serializable
  2. object Multipart extends Serializable
  3. object MultipartParser

    A low-level multipart-parsing pipe.

    A low-level multipart-parsing pipe. Most end users will prefer EntityDecoder[Multipart].

  4. object Multiparts
  5. object Part extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped