-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement NSURLProtocol.stopLoading() for delayed requests (#96)
* implemented NSURLProtocol stopLoading method * added IntelliJ AppCode meta file directory to git ignore * using `indexOf` instead of swift array `filter` to reduce roundtrips * Detailed the code documentation to make the internal NSURLProtocol (OS) logic better understandable * Fixed spelling mistakes in code docs * Router now remembers the 'to be canceled' URLs & added router unit tests for 'stopLoading' * Move request cancelation to private method and fixed unit test for Router (avoid accessing private vars) * Check that the url client does not deliver notifications when the router's request loading gets cancelled. * Added stopLoading tests to cover the cancellation logic * Cancel the request immediately * Using simple flag on the KakapoServer instance to let the OS mark a server request be marked as cancelled, adopted tests accordingly, * Removed code comments, which expose too much of internal implementation logic, reduced visibility of variables * fixed spelling mistake in test description * Removed error prone initialization of error response objects in test case. * fixed duplicate URL request test
- Loading branch information
Showing
11 changed files
with
189 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.