aesiniath / http-streams

Haskell HTTP client library for use with io-streams
https://hackage.haskell.org/package/http-streams
BSD 3-Clause "New" or "Revised" License
50 stars 48 forks source link

form-data encoding support? #87

Open winterland1989 opened 9 years ago

winterland1989 commented 9 years ago

It seems current encodedFormBody implementation doesn't support file input, while my company's file uploading api dosen't support PUT raw file, i'd like request a feature that allow building POST request with file with form-data/multipart encoded : )

hvr commented 9 years ago

Such an InputStream should be actually quite easy to implement (assuming one provide a boundary-marker string that doesn't occur in the content-stream...)