InputFile
Create an instance of InputFile from ByteArray.
Create an instance of InputFile from InputProvider.
Create an instance of InputFile from ChannelProvider.
fun InputFile(byteReadPacket: ByteReadPacket, defaultHeaders: Headers = Headers.Empty): InputFile(source)
Create an instance of InputFile from ByteReadPacket.
Create an instance of InputFile from File.
This InputFile Will use File.length in InputFile.includeTo, InputFile.toFormPart, and use File.readChannel in ChannelProvider.
Create an instance of InputFile from Path.
This InputFile will use Path.fileSize in InputFile.includeTo, InputFile.toFormPart, and use Files.newByteChannel, asInput in ChannelProvider.