Package-level declarations

Types

Link copied to clipboard
interface InputFile

一个可以向 Ktor 表单请求中输入的文件信息。

Functions

Link copied to clipboard
@JvmName(name = "of")
fun InputFile(channel: ChannelProvider, defaultHeaders: Headers = Headers.Empty): InputFile

Create an instance of InputFile from ChannelProvider.

@JvmName(name = "of")
fun InputFile(input: InputProvider, defaultHeaders: Headers = Headers.Empty): InputFile

Create an instance of InputFile from InputProvider.

@JvmName(name = "of")
fun InputFile(byteReadPacket: ByteReadPacket, defaultHeaders: Headers = Headers.Empty): InputFile

Create an instance of InputFile from ByteReadPacket.

@JvmName(name = "of")
fun InputFile(bytes: ByteArray, defaultHeaders: Headers = Headers.Empty): InputFile

Create an instance of InputFile from ByteArray.

@JvmName(name = "of")
fun InputFile(file: File, defaultHeaders: Headers = Headers.Empty): InputFile

Create an instance of InputFile from File.

@JvmName(name = "of")
fun InputFile(path: Path, defaultHeaders: Headers = Headers.Empty): InputFile

Create an instance of InputFile from Path.