Releases: postmates/PMHTTP
Releases · postmates/PMHTTP
PMHTTP v4.5.0
- Add Obj-C convenience functions for creating upload requests with an
NSData
but 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.HTTPHeaders
methodsinit(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.credential
property 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
HTTPManagerError
for convenient access to the associated values (e.g..response
,.body
, etc). - Add computed property
HTTPManagerError.statusCode
that returns the failing status code for the error, ornil
for.unexpectedContentType
(#60). - Add Obj-C function
PMHTTPErrorGetStatusCode()
that returns the failing status code for the error, ornil
forPMHTTPErrorUnexpectedContentType
or for non-PMHTTP errors (#60). - Provide
PMHTTPStatusCodeErrorKey
user info key for more error types (#59). - Add computed property
URLResponse.isUnmockedInterceptedRequest
that 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
PMHTTPErrorIsFailedResponse
to handlePMHTTPErrorUnexpectedNoContent
andPMHTTPErrorUnexpectedRedirect
in addition toPMHTTPErrorFailedResponse
andPMHTTPErrorUnauthorized
. - Fix warnings introduced by Xcode 10.2.
PMHTTP v4.3.2
- Fix bug where requests constructed from a
URL
would not inherit environmental defaults (e.g. auth, headers, etc) (#52).
PMHTTP v4.3.1
- Add
URLProtocol
method overloads to query and set protocol properties onHTTPManagerRequest
s (#43)
PMHTTP v4.3.0
PMHTTP v4.2.0
- Percent-encode more characters for
application/x-www-form-urlencoded
bodies 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
metricsCallback
isnil
(#37). - Extend built-in retry behaviors to support custom strategies (#35).
- Add
HTTPManagerRequest
properties that correspond to theURLRequest
propertiesmainDocumentURL
andhttpShouldHandleCookies
(#40).