api

http4k / org.http4k.lens / MultipartFormFile

MultipartFormFile

data class MultipartFormFile : Closeable

Types

Name Summary
Companion companion object Companion : BiDiLensSpec<MultipartForm, MultipartFormFile>

Constructors

Name Summary
<init> MultipartFormFile(filename: String, contentType: ContentType, content: InputStream)

Properties

Name Summary
content val content: InputStream
contentType val contentType: ContentType
filename val filename: String

Functions

Name Summary
close fun close(): Unit
equals fun equals(other: Any?): Boolean
hashCode fun hashCode(): Int
toString fun toString(): String

Companion Object Functions

Name Summary
inputStream Use this when it doesn’t matter about the name or content type of the file uploaded.fun inputStream(): BiDiLensSpec<MultipartForm, InputStream>