MultipartParser
object MultipartParser
A low-level multipart-parsing pipe. Most end users will prefer EntityDecoder[Multipart].
- Source:
- MultipartParser.scala
Value members
Concrete methods
F.pure[Tuple2[Option[Part[F]],Option[Part[F]]]](Tuple2.apply[Some[Part[F]],None.type](Some.apply[Part[F]]({
valbody$1:Stream[[x>:Nothing<:Any]=>F[x],Byte]=acc0.body.++[[x>:Nothing<:Any]=>F[x],Byte](Stream.chunk[[x>:Nothing<:Any]=>Pure[x],Byte](chunk))
valheaders$1:Headers=acc0.copy$default$1[F]
acc0.copy[F](headers$1,body=body$1)
}),None))
caseTuple2(Some(_),PartEnd)=>
F.pure[Tuple2[Option[Part[F]],Option[Part[F]]]](Tuple2.apply[None.type,Option[Part[F]]](None,acc))
caseTuple2(Some(_),_:PartStart)=>
F.raiseError[Tuple2[Option[Part[F]],Option[Part[F]]]](bug("MissingPartEnd"))
})))(functorFilterInstance[F]).mapFilter[Part[F]](((_$9:Tuple2[Option[Part[F]],Option[Part[F]]])=>_$9._2)))" class="documentableAnchor">
def
F.pure[Tuple2[Option[Part[F]],Option[Part[F]]]](Tuple2.apply[Some[Part[F]],None.type](Some.apply[Part[F]]({
valbody$1:Stream[[x>:Nothing<:Any]=>F[x],Byte]=acc0.body.++[[x>:Nothing<:Any]=>F[x],Byte](Stream.chunk[[x>:Nothing<:Any]=>Pure[x],Byte](chunk))
valheaders$1:Headers=acc0.copy$default$1[F]
acc0.copy[F](headers$1,body=body$1)
}),None))
caseTuple2(Some(_),PartEnd)=>
F.pure[Tuple2[Option[Part[F]],Option[Part[F]]]](Tuple2.apply[None.type,Option[Part[F]]](None,acc))
caseTuple2(Some(_),_:PartStart)=>
F.raiseError[Tuple2[Option[Part[F]],Option[Part[F]]]](bug("MissingPartEnd"))
})))(functorFilterInstance[F]).mapFilter[Part[F]](((_$9:Tuple2[Option[Part[F]],Option[Part[F]]])=>_$9._2)))" class="documentableName ">parseToPartsStream[F[_]](boundary: Boundary, limit: Int)(implicit F: Concurrent[F]): (F, Byte) => Part[F]
- Source:
- MultipartParser.scala
Deprecated methods
@deprecated("Use parseSupervisedFile", "0.23")
Same as the other streamed parsing, except after a particular size, it buffers on a File.
Same as the other streamed parsing, except after a particular size, it buffers on a File.
- Deprecated
- Source:
- MultipartParser.scala
:Nothing<:Any]=>F[x],Part[F]]))))).apply(_$29)).stream)
((_$30:Stream[F,Byte])=>_$30.through[[x>:Nothing<:Any]=>F[x],Event](parseEvents[F](boundary,limit)(evidence$6)).through[[x>:Nothing<:Any]=>F[x],Event](limitParts[F](maxParts,failOnLimit)(fromApplicativeError[F](evidence$6))).through[[x>:Nothing<:Any]=>F[x],Part[F]](pullParts))
}" class="documentableAnchor">
@deprecated("Use parseSupervisedFile", "0.23")
def :Nothing<:Any]=>F[x],Part[F]]))))).apply(_$29)).stream)
((_$30:Stream[F,Byte])=>_$30.through[[x>:Nothing<:Any]=>F[x],Event](parseEvents[F](boundary,limit)(evidence$6)).through[[x>:Nothing<:Any]=>F[x],Event](limitParts[F](maxParts,failOnLimit)(fromApplicativeError[F](evidence$6))).through[[x>:Nothing<:Any]=>F[x],Part[F]](pullParts))
}" class="documentableName deprecated">parseToPartsStreamedFile[F[_] : Files](boundary: Boundary, limit: Int, maxSizeBeforeWrite: Int, maxParts: Int, failOnLimit: Boolean): (F, Byte) => Part[F]
- Deprecated
- Source:
- MultipartParser.scala