PMHTTP icon indicating copy to clipboard operation
PMHTTP copied to clipboard

Swift/Obj-C HTTP framework with a focus on REST and JSON

Results 16 PMHTTP issues
Sort by recently updated
recently updated
newest added

We should expose the equivalent of `.retryNetworkFailure(withCustomStrategy:)` and `retryNetworkFailureOrServiceUnavailable(withCustomStrategy:)` to Obj-C.

enhancement

Currently when asking the mock manager to intercept unmocked requests, it does so by making them return a 500 Internal Server Error. We may want to change this to return...

Right now request parse blocks run on `.utility` (unless `request.userInitiated == true`, then it runs on the `.userInitiated` queue). We should probably change that to `.default` instead, and have some...

enhancement

The documentation on the request hierarchy should mention `HTTPManagerRequestPerformable`.

documentation

Right now the mock manager has 2 properties to control whether it intercepts unmocked requests, one for requests within the environment and one for requests outside (the idea being that...

enhancement

Right now we set a single global environment on the `HTTPManager`, and then tie a number of defaults to it. This is convenient for simple setups, but doesn't work well...

enhancement

We should probably have a way to attach a block to a request that can be used to customize the final `URLRequest` immediately prior to handing it to `URLSession`. This...

enhancement

We should have a way to create an upload request that takes an `Encodable` type and encodes it to JSON. It should ideally do this asynchronously (see #32).

enhancement
TODO

We should support a way to have a POST/PUT that constructs its data asynchronously (and vends it as a `bodyStream`). Multipart uploads can already do this, but we don't have...

enhancement
TODO