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 nice to add a block to HTTPManagerRequest that is fired when that delegate method is invoked.
In macOS 10.13 / iOS 11,
URLSessionConfigurationhas a new propertywaitsForConnectivity. This should work just fine with PMHTTP. It also has a new delegate methodurlSession(_:taskIsWaitingForConnectivity:). It might be nice to add a block toHTTPManagerRequestthat is fired when that delegate method is invoked.