twitter/finagle

Support for uploading files in HTTP client

Open

#501 ouverte le 26 avr. 2016

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Scala (1 435 forks)batch import
help wanted

Métriques du dépôt

Stars
 (8 864 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur