diff options
author | adamw <adam@warski.org> | 2017-08-29 14:39:41 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-08-29 14:39:41 +0200 |
commit | acbf6567533011afe0479dffefa3a918fc570f32 (patch) | |
tree | 1e9d079d08514e1e4f4154198f9bf1e732cc075d /core/src | |
parent | 0ff548cbbe6f0c7eb054597ff693f9bfbec3a65b (diff) | |
download | sttp-acbf6567533011afe0479dffefa3a918fc570f32.tar.gz sttp-acbf6567533011afe0479dffefa3a918fc570f32.tar.bz2 sttp-acbf6567533011afe0479dffefa3a918fc570f32.zip |
Multipart support in async http client
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/com/softwaremill/sttp/package.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/scala/com/softwaremill/sttp/package.scala b/core/src/main/scala/com/softwaremill/sttp/package.scala index 69f20f0..60ef6f5 100644 --- a/core/src/main/scala/com/softwaremill/sttp/package.scala +++ b/core/src/main/scala/com/softwaremill/sttp/package.scala @@ -146,6 +146,8 @@ package object sttp { /** * 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 multipart(name: String, data: File): Multipart = multipart(name, data.toPath) @@ -153,6 +155,8 @@ package object sttp { /** * 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 multipart(name: String, data: Path): Multipart = Multipart(name, |