PMHTTP
PMHTTP copied to clipboard
Swift/Obj-C HTTP framework with a focus on REST and JSON
In macOS 10.13 / iOS 11, `URLSessionConfiguration` has a new property `waitsForConnectivity`. This should work just fine with PMHTTP. It also has a new delegate method `urlSession(_:taskIsWaitingForConnectivity:)`. It might be...
We now have the `HTTPAuth` infrastructure so people can roll their own. But it would be nice if we had an already-written full implementation of OAuth2, including bearer tokens, so...
We should support creation of download tasks. This would probably be another request type that's a sibling of `HTTPManagerParseRequest`, implemented similarly to `HTTPManagerParseRequest` except it has a download callback that's...
Our current mechanism for handling request headers is to normalize header names when inserting or looking them up. This means that you can say ``` swift request.headerFields["content-type"] = "application/json" assert(request.headerFields["Content-Type"]...
We should turn `HTTPManagerRetryBehavior.Strategy` into a `struct` so we can merge the custom retry behavior into it. This could alternatively be done with a new `.custom` case, but by turning...