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
o

org.http4s.multipart

MultipartParser

object MultipartParser

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

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

Type Members

  1. final case class Out[+A](a: A, tail: Option[ByteVector] = None) extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def generateHeaders(byteVector: ByteVector)(acc: Headers): Headers
    Annotations
    @tailrec()
  10. def generatePart(byteVector: ByteVector): (Headers, ByteVector)
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def parse(boundary: Boundary, headerLimit: Long = 40 * 1024): Pipe[Task, Byte, Either[Headers, ByteVector]]
  18. def parseToParts(byteVector: ByteVector)(boundary: Boundary): Task[ByteVector]

    parseToParts - Removes Prelude and Trailer

    parseToParts - Removes Prelude and Trailer

    splitParts - Splits Into Parts splitPart - Takes a Single Part of the Front generatePart - Generates a tuple of Headers and a ByteVector of the Body, effectively a Part

    generateHeaders - Generate Headers from ByteVector splitHeader - Splits a Header into the Name and Value

  19. def splitHeader(byteVector: ByteVector): Option[(ByteVector, ByteVector)]
  20. def splitPart(byteVector: ByteVector)(boundary: Boundary): Option[(ByteVector, ByteVector)]
  21. def splitParts(byteVector: ByteVector)(boundary: Boundary)(acc: List[Either[Headers, ByteVector]]): List[Either[Headers, ByteVector]]
    Annotations
    @tailrec()
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped