Swiftpack.co - Package - vapor/multipart

Github

link
Stars: 21
Help us keep the lights on

Dependencies

Releases

3.0.1 - Apr 20, 2018

Fixed:

  • Files now serialize contentType header (#21).
  • Fixed a bug where [File] could not be decoded (#25).

Milestone: 3.0.1

2.2.1 - Apr 18, 2018

Fixed:

  • Add a missing import Foundation.

3.0.0 - Apr 13, 2018

Multipart 3.0 is here, now with Codable support! 🏞 Use multipart to parse and serializes multipart-encoded data.

Docs: https://docs.vapor.codes/3.0/multipart/getting-started/

API Docs: https://api.vapor.codes/multipart/latest/Multipart

Milestone: 3.0.0


Changes since final release candidate.

⚠️ The old hacky way of using MultipartForm to parse requests is gone. Use Content just like JSON and form-urlencoded.

New:

Fixed:

  • API audit: Lots of APIs cleaned up and/or made internal. Lots of doc blocks added, too!

2.2.0 - Mar 22, 2018

New:

  • Improved the multipart parsing performance.

Before

Time to parse a multipart message with the given size. Measured on a 4-core 2.6 GHz Intel Core i7, macOS 10.13.3, Swift 4.0.3:

Message Size | Debug Build | Release Build -------------|-------------|-------------- 100 KB | 0.36 s | 0.16 s 200 KB | 1.24 s | 0.58 s 400 KB | 4.56 s | 2.21 s

After

Message Size | Debug Build |Speedup| Release Build | Speedup -------------|---------|------|------------|--- 100 KB | 0.09 s | 4× | 0.027 s | 6× 200 KB | 0.19 s | 6.5× | 0.06 s | 10× 400 KB | 0.37 s | 12× | 0.11 s | 20×

Milestone

2.1.1 - Oct 17, 2017

Fixed:

  • Boundaries with " are now supported.