twitter/finagle

Support for uploading files in HTTP client

開放

#501 建立於 2016年4月26日

 (3 則留言) (0 個反應) (0 位負責人)Scala (1,435 個分叉)batch import
help wanted

倉庫指標

星標
 (8,864 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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))

貢獻者指南