SttpExtensions

class Object
trait Matchable
class Any
trait SttpApi
object quick

Value members

Concrete methods

def asFile(file: File): ResponseAs[Either[String, File], Any]
def asFileAlways(file: File): ResponseAs[File, Any]
def multipartFile(name: String, file: File): Part[BasicRequestBody]

Content type will be set to application/octet-stream, can be overridden later using the contentType method.

Content type will be set to application/octet-stream, can be overridden later using the contentType method.

File name will be set to the name of the file.