Skip to content

Releases: postmates/PMHTTP

PMHTTP v4.5.0

Choose a tag to compare

@lilyball lilyball released this 28 Nov 00:42
  • Add Obj-C convenience functions for creating upload requests with an NSData but no explicit contentType (#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 methods init(minimumCapacity:) and reserveCapacity(_:) and property capacity (#66).

PMHTTP v4.4.3

Choose a tag to compare

@lilyball lilyball released this 15 Nov 05:03
  • 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

Choose a tag to compare

@lilyball lilyball released this 15 Nov 05:04
  • Fix a bug with the deprecated HTTPManagerObjectParseRequest.credential property where assigning to the property wouldn't work.

PMHTTP v4.4.1

Choose a tag to compare

@lilyball lilyball released this 24 Apr 20:45

PMHTTP v4.4.0

Choose a tag to compare

@lilyball lilyball released this 24 Apr 02:43
  • 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, or nil for .unexpectedContentType (#60).
  • Add Obj-C function PMHTTPErrorGetStatusCode() that returns the failing status code for the error, or nil for PMHTTPErrorUnexpectedContentType 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

Choose a tag to compare

@lilyball lilyball released this 07 Apr 22:12
  • Updated PMHTTPErrorIsFailedResponse to handle PMHTTPErrorUnexpectedNoContent and PMHTTPErrorUnexpectedRedirect in addition to PMHTTPErrorFailedResponse and PMHTTPErrorUnauthorized.
  • Fix warnings introduced by Xcode 10.2.

PMHTTP v4.3.2

Choose a tag to compare

@lilyball lilyball released this 15 Nov 01:46
  • Fix bug where requests constructed from a URL would not inherit environmental defaults (e.g. auth, headers, etc) (#52).

PMHTTP v4.3.1

Choose a tag to compare

@lilyball lilyball released this 02 Aug 03:52
  • Add URLProtocol method overloads to query and set protocol properties on HTTPManagerRequests (#43)

PMHTTP v4.3.0

Choose a tag to compare

@lilyball lilyball released this 27 Jul 06:50
  • Expose HTTPManagerTask.userInitiated as a public property (#42).
  • Add another parameter to the HTTPManager.MetricsCallback callback. In order to retain backwards compatibility, the old initializer and property were deprecated and a new initializer and property were added with different names (#41).

PMHTTP v4.2.0

Choose a tag to compare

@lilyball lilyball released this 11 Jul 04:32
  • 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 is nil (#37).
  • Extend built-in retry behaviors to support custom strategies (#35).
  • Add HTTPManagerRequest properties that correspond to the URLRequest properties mainDocumentURL and httpShouldHandleCookies (#40).