MultiPart

io.quartz.util.MultiPart$
object MultiPart

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def stream(req: Request): IO[Stream[IO, Headers | Chunk[Byte]]]

Reads an HTTP request and returns a stream of data as a Stream of Headers or Chunk[Byte] values. Assumes that the incoming data is in the form of an HTTP Multipart message.

Reads an HTTP request and returns a stream of data as a Stream of Headers or Chunk[Byte] values. Assumes that the incoming data is in the form of an HTTP Multipart message.

Attributes

req

The HTTP request to read.

Returns:

A Stream of Headers or Chunk[Byte] values representing the data in the HTTP request.

def writeAll(req: Request, folderPath: String): IO[Unit]

Writes all multipart files from the incoming request data stream to the specified folder.

Writes all multipart files from the incoming request data stream to the specified folder.

Attributes

folderPath

The path to the folder where the files should be written.

req

The HTTP request containing the multipart data.

Returns:

An IO action that writes the files to disk.