• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

twitter / CocoaSPDY / 338
80%
master: %

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 01 Dec 2015 01:12AM UTC
Jobs 1
Files 85
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
338

push

travis-ci

kgoodier
Add support for NSURLCache.

The NSURL loading system has subtle and poorly documented behavior
regarding caching. CocoaSPDY was not doing the right thing, thus
there was no support for NSURLCache in the protocol. This patch
adds support for both NSURLConnection and NSURLSession based
requests.

If the request specifies a NSURLRequest cachePolicy of:

NSURLRequestUseProtocolCachePolicy
- NSURL system does not provide a cached response to the protocol
constructor. It is up to the protocol to load and validate the
cached response.

NSURLRequestReturnCacheDataElseLoad
- NSURL system will provide the cached response, if available. The
protocol is expected to validate the response, and load if not
available or not valid.

NSURLRequestReturnCacheDataDontLoad
- NSURL system will provide the cached response, if available. The
protocol is expected to validate the response. The protocol will not
be loaded if no cached response is available, or if one is but is
invalid, the protocol should not load the request.

In the cases where the protocol has a cached response and it is valid,
it is supposed to call URLProtocol:cachedResponseIsValid. CocoaSPDY
was not doing this.

CocoaSPDY also has to jump through some hoops whenever NSURLSession is
being used, as Apple has not provided a way to get the
NSURLSessionConfiguration and thus we cannot get the right NSURLCache.
Fortunately we have already provided a workaround for this.

24 of 24 new or added lines in 1 file covered. (100.0%)

3377 of 4315 relevant lines covered (78.26%)

65.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
SPDY/SPDYProtocol.m
Jobs
ID Job ID Ran Files Coverage
1 338.1 01 Dec 2015 01:12AM UTC 0
78.26
Travis Job 338.1
Source Files on build 338
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #338
  • 170dd0dc on github
  • Next Build on feature/nsurlcache (#344)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc