SttpExtensions

class Object
trait Matchable
class Any
trait SttpApi
object quick.type

Value members

Concrete methods

def asFile(file: File): ResponseAs[Either[String, File], Any]
def asFileAlways(file: File): ResponseAs[File, Any]
def asPath(path: Path): ResponseAs[Either[String, Path], Any]
def asPathAlways(path: Path): ResponseAs[Path, Any]
def multipartFile(name: String, data: File): Part[RequestBody[Any]]

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.

def multipartFile(name: String, data: Path): Part[RequestBody[Any]]

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.