Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package http4s
    Definition Classes
    org
  • package multipart

    This package is the start of a multipart implementation for http4s.

    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.

    Definition Classes
    http4s
  • Boundary
  • Multipart
  • MultipartParser
  • Part

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

Source
Part.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Media[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Part
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Media
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Part(headers: Headers, body: Stream[F, Byte])

Value Members

  1. final def as[A](implicit F: MonadThrow[F], decoder: EntityDecoder[F, A]): F[A]

    Decode the Media to the specified type

    Decode the Media to the specified type

    If no valid Status has been described, allow Ok

    A

    type of the result

    decoder

    EntityDecoder used to decode the Media

    returns

    the effect which will generate the A

    Definition Classes
    Media
  2. final def attemptAs[T](implicit decoder: EntityDecoder[F, T]): DecodeResult[F, T]

    Decode the Media to the specified type

    Decode the Media to the specified type

    T

    type of the result

    decoder

    EntityDecoder used to decode the Media

    returns

    the effect which will generate the DecodeResult[T]

    Definition Classes
    Media
  3. val body: Stream[F, Byte]
    Definition Classes
    PartMedia
  4. final def bodyText(implicit RT: RaiseThrowable[F], defaultCharset: Charset = DefaultCharset): Stream[F, String]
    Definition Classes
    Media
  5. final def charset: Option[Charset]
    Definition Classes
    Media
  6. final def contentLength: Option[Long]
    Definition Classes
    Media
  7. final def contentType: Option[Content-Type]
    Definition Classes
    Media
  8. def covary[F2[x] >: F[x]]: Part[F2]
    Definition Classes
    PartMedia
  9. def filename: Option[String]
  10. val headers: Headers
    Definition Classes
    PartMedia
  11. def name: Option[String]