Releases: postmates/PMHTTP
Releases · postmates/PMHTTP
PMHTTP v4.5.0
- Add Obj-C convenience functions for creating upload requests with an
NSDatabut no explicitcontentType(#65). - Fix the Obj-C
-setValue:forHeaderField:and-setValue:forDefaultHeaderField:methods to take a nullable value (#67). - Add
HTTPManagerRetryBehavior.init(any:)to combine multiple retry behaviors together (#69). - Add
HTTPManagerRequest.HTTPHeadersmethodsinit(minimumCapacity:) andreserveCapacity(_:)and propertycapacity(#66).
PMHTTP v4.4.3
- Support PMJSON 4.x in addition to PMJSON 3.x with CocoaPods. Carthage doesn't support that kind of version range so it's now just set to PMJSON 4.x only.
PMHTTP v4.4.2
- Fix a bug with the deprecated
HTTPManagerObjectParseRequest.credentialproperty where assigning to the property wouldn't work.
PMHTTP v4.4.1
- Work around a CocoaPods bug with Swift versions (CocoaPods/CocoaPods#8635).
PMHTTP v4.4.0
- Fix a bug when parsing images where we passed the wrong value for the type identifier hint, resulting in a warning being logged to the console (#62).
- Add computed properties on
HTTPManagerErrorfor convenient access to the associated values (e.g..response,.body, etc). - Add computed property
HTTPManagerError.statusCodethat returns the failing status code for the error, ornilfor.unexpectedContentType(#60). - Add Obj-C function
PMHTTPErrorGetStatusCode()that returns the failing status code for the error, ornilforPMHTTPErrorUnexpectedContentTypeor for non-PMHTTP errors (#60). - Provide
PMHTTPStatusCodeErrorKeyuser info key for more error types (#59). - Add computed property
URLResponse.isUnmockedInterceptedRequestthat can be used to test if a response comes from a request that was intercepted by the mock manager without a mock installed (#46).
PMHTTP v4.3.3
- Updated
PMHTTPErrorIsFailedResponseto handlePMHTTPErrorUnexpectedNoContentandPMHTTPErrorUnexpectedRedirectin addition toPMHTTPErrorFailedResponseandPMHTTPErrorUnauthorized. - Fix warnings introduced by Xcode 10.2.
PMHTTP v4.3.2
- Fix bug where requests constructed from a
URLwould not inherit environmental defaults (e.g. auth, headers, etc) (#52).
PMHTTP v4.3.1
- Add
URLProtocolmethod overloads to query and set protocol properties onHTTPManagerRequests (#43)
PMHTTP v4.3.0
PMHTTP v4.2.0
- Percent-encode more characters for
application/x-www-form-urlencodedbodies and query strings. Notably, semicolon (;) is now percent-encoded, as some servers treat it as a separator. - Optimize task metrics collection such that metrics are not collected if
metricsCallbackisnil(#37). - Extend built-in retry behaviors to support custom strategies (#35).
- Add
HTTPManagerRequestproperties that correspond to theURLRequestpropertiesmainDocumentURLandhttpShouldHandleCookies(#40).