MultiPart

io.quartz.util.MultiPart
object MultiPart

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MultiPart.type

Members list

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.

Value parameters

req

The HTTP request to read.

Attributes

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.

Value parameters

folderPath

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

req

The HTTP request containing the multipart data.

Attributes

Returns

An IO action that writes the files to disk.