Skip to content

Commit

Permalink
Implement file streaming for httpclient's MultipartData (nim-lang#12982)
Browse files Browse the repository at this point in the history
* Add `uploadFile` to POST files by streaming them

* Use constant for \c\L

* Formatting

* Remove uploadFile

* Implement MultipartData file streaming

* Remove unnecessary var annotations

* Call string on TaintedStrings

Fixes nim-lang#12789

* Move cl constant to httpcore

* Fix `request` inconsistencies

* Update documentaion

* Clean up

* Skip multipart formatting when there's 0 entries

* Remove extraneous `cl` from multipart formatting

* Update MultipartData `$` to match old behaviour

* Update comment

* Address comments
  • Loading branch information
zedeus authored Mar 6, 2020
1 parent 7ae0811 commit e056298
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 147 deletions.
Loading

0 comments on commit e056298

Please sign in to comment.