Skip to content

PMHTTP v2.0.0

Compare
Choose a tag to compare
@lilyball lilyball released this 03 Jan 23:35
· 148 commits to master since this release
  • Support text/json in addition to application/json.
  • Add 2 convenience methods for uploading UIImages as PNG or JPEG data.
  • Add objcError property to PMHTTPResult.
  • Change objcError on HTTPManagerTaskResult to Error? instead of NSError?.
  • Fix Xcode 8.1 compatibility of unit tests.
  • Add optional options parameter to parseAsJSON() and parseAsJSON(with:).
  • Add withMultipartBody(using:) to HTTPManagerUploadFormRequest.
  • Rename parse(with:), parseAsJSON(options:with:), and addMultipartBody(with:) to use the parameter name using: instead, which is more in line with Swift 3 Foundation naming conventions.