kohttp / io.github.rybalkinsd.kohttp.dsl.context / UploadContext / file

file

fun file(content: File): Unit

Sets File to Upload.

Parameters

content - : java.io.File file to upload

Return
Unit.

fun file(content: URI): Unit

Sets File to Upload.

Parameters

content - : java.net.URI for file to upload

Return
Unit.