twitter/finagle

Support for uploading files in HTTP client

Open

#501 创建于 2016年4月26日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Scala (8,864 star) (1,435 fork)batch import
help wanted

描述

I am abandoning scalaj-http in favour of Finagle. The only feature that I am missing is support for file uploads. From what I have found, there is no direct equivalent to this scalaj-http code:

val response = scalaj.http.Http(url)
  .postMulti(scalaj.http.MultiPart(
    "file",
    file.getName,
    Files.probeContentType(file.toPath),
    new FileInputStream(file),
    file.length(),
    onWrite))

贡献者指南

Support for uploading files in HTTP client · twitter/finagle#501 | Good First Issue