Swiftpack.co - Package - vapor/multipart-kit

Github

link
Stars: 39

Dependencies

Used By

Total: 0

Releases

Fix MultipartParser off-by-one error - 2020-03-05 19:31:58

Fixes an issue in MultipartParser causing byte counting to be off-by-one (#45, #44).

MultipartKit 4.0.0 Beta 2 - 2019-12-09 14:34:26

  • Enabled test discovery on Linux (#42)

Multipart 3.1.1 - 2019-10-29 20:05:47

Makes Date.useISO8601ForMultipart public so the behaviour can be changed.

MultipartKit 4.0.0 Beta 1 - 2019-10-24 18:59:58

This library has been renamed to MultipartKit and rewritten on top of François Colas's streaming C multipart parser. This means its now possible to stream in large, multipart-encoded file uploads using very little system memory. Note that the form-data variant Encoder and Decoder still require the entire multipart payload to be in memory.

For some usage examples, check out the tests folder: https://github.com/vapor/multipart-kit/blob/master/Tests/MultipartKitTests/MultipartKitTests.swift

Multipart 3.1.0 - 2019-10-23 01:25:14

  • Date now serializes as ISO8601 to multipart data. (#38)

If you rely on the old behavior of Date serializing as Double, you can disable this adding this line to your configure.swift file.

Date.useISO8601ForMultipart = false

Multipart 3.0.4 - 2019-04-10 15:54:30

Fixed:

  • Fixed an issue that could cause crashes in Swift 5. (#34)

Multipart 3.0.3 - 2019-01-30 00:12:53

Fixed:

  • Adds multipart convertible support to Bool. (#32)

Multipart 3.0.2 - 2018-07-23 11:13:14

Fixed:

  • Encoding [File] was not supported. #28

Multipart 3.0.1 - 2018-04-20 17:43:41

Fixed:

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

Milestone: 3.0.1

Multipart 2.2.1 - 2018-04-18 15:41:49

Fixed:

  • Add a missing import Foundation.

Multipart 3.0.0 - 2018-04-13 02:35:35

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!

Multipart 2.2.0 - 2018-03-22 00:44:21

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

Multipart 2.1.1 - 2017-10-17 18:02:23

Fixed:

  • Boundaries with " are now supported.

Multipart 2.1.0 - 2017-08-10 17:36:04

New:

  • Swift 4 support.

Milestone

Multipart 2.0 - 2017-05-17 16:47:01

🎉

Multipart 2.0 has been updated to be faster and easier to use with better support for edge cases in the multipart format.

Check out the full diff here

Multipart 1.0.3 - 2017-04-05 13:40:42

Fixed:

  • Multipart bodies containing -- are now parsed properly

Multipart 2.0 Beta 2 - 2017-04-05 13:40:33

Fixed:

  • Multipart bodies containing -- are now parsed properly

Multipart 2.0 Alpha 1 - 2017-03-27 15:31:03

Beta Candidate

Multipart 2.0 Alpha 3 - 2017-03-19 11:47:28

Fixed:

  • Move to .makeString()

Multipart 1.0.2 - 2017-03-06 13:52:02

Fixed:

  • Off by one parser fix.

Multipart 2.0 Alpha 2 - 2017-03-06 13:51:22

Fixed:

  • Off by one parser fix.

Multipart 2.0 Alpha 1 - 2017-02-16 11:49:18

New:

  • Deps

#2

Multipart 1.0.1 - 2017-02-03 12:24:43

Fixed:

  • Reference cycle in FormData.Parser.

Multipart 1.0.0 - 2017-01-19 16:58:14

This package includes the module Multipart which is capable of parsing Content-Type: multipart as defined in RFC 2046. Multipart can also process multipart/form-data, a content type commonly used by browsers to submit forms with files.