pyke369 / PKMultipartInputStream

an NSInputStream subclass suitable for building multipart/form-data http requests bodies in MacOSX/iOS applications.
http://github.com/pyke369/PKMultipartInputStream
MIT License
73 stars 19 forks source link

Plays more nicely with swift #20

Closed robertcopper closed 6 years ago

robertcopper commented 6 years ago

The boundary property is not marked nonnull so that Swift doesn't think it's optional. This makes it easier to put requests together.

Also added calls to [super init] in the two init function where they were missing.

robertcopper commented 6 years ago

This is a great project. It makes uploading multipart forms that include large file attachments much easier!

I wrote a demo in Swift that uses the more modern URLSession. It's at:

https://github.com/robertcopper/PKMultipartInputStreamDemo

I can make it an alternate target of your original project, if you like.

pyke369 commented 6 years ago

Thanks a lot for this pull request Robert.