SttpExtensions

sttp.client3.SttpExtensions
See theSttpExtensions companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait SttpApi
object quick.type

Members list

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.

Attributes

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.

Attributes