summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/response.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [build] split out DefaultFileSource and dependents to a separate targetKonstantin Käfer2017-09-281-1/+0
| | | | We don't want to link it into the node bindings, so keep it in a separate target
* [core] finish must-revalidate supportKonstantin Käfer2017-08-081-0/+10
|
* [core] Do not consider error'ed responses freshThiago Marcos P. Santos2017-02-071-1/+1
| | | | | It has the unwanted side effect of not retrying anymore in case of error.
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-1/+1
|
* [core] OnlineFileSource - rate limitIvo van Dongen2016-09-131-1/+5
|
* [core] Don't allow style mutations to be overwritten by revalidationJohn Firebaugh2016-08-231-0/+4
| | | | | * Once we get a fresh style, stop revalidating. * If the style is mutated, stop revalidating and preserve the existing mutations.
* [tidy] Check modernize-pass-by-valueBruno de Oliveira Abinader2016-06-131-1/+1
| | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
* [core] use #pragma once instead of ifdef include guardsKonstantin Käfer2016-05-251-4/+1
|
* [core] move from microsecond precision timestamp to integer second precisionKonstantin Käfer2016-05-131-2/+2
|
* Add binary for smoke-testing offline downloadsJohn Firebaugh2016-02-101-0/+2
|
* [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-101-0/+4
|
* [all] Do not set Response data for 404sJohn Firebaugh2016-02-101-1/+1
| | | | For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent.
* [core] Remove Response::Error::Reason::CanceledJohn Firebaugh2016-02-041-1/+0
| | | | There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response.
* [core] Include prior values of caching headers in ResourceJohn Firebaugh2016-01-221-2/+2
| | | | This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations.
* [core] Use better types for modified / expires / etagJohn Firebaugh2016-01-211-3/+4
|
* [core] Eliminate Response::stale and inline Response::isExpired()John Firebaugh2016-01-211-5/+0
| | | | Response::isExpired() had subtle and potentially confusing behavior around Seconds::zero(). It's best to inline it and comment why.
* [core] Add an explicit "not modified" indicator to ResponseJohn Firebaugh2016-01-141-0/+3
|
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-271-2/+4
| | | | | | | Added aliases for std::chrono typedefs (eg. 'Seconds' for std::chrono::seconds). These aliases are used together with templated helper functions to replace time_t with std::chrono::seconds for most cases, in particular for 'modified' and 'expires' values in Response.
* [core] move retry logic to DefaultFileSourceKonstantin Käfer2015-11-021-5/+32
|
* [core] reparse tiles when new data arrivesKonstantin Käfer2015-10-261-0/+1
| | | | We're now reparsing tiles when they expire. We're also swapping out buckets atomically to avoid flickering data; i.e. we're displaying the old data as long as we don't have a new parsed bucket for that layer yet. The parsed buckets now live in the *TileData objects rather than in the TileWorker; only partially parsed == pending buckets will remain in the TileWorker. Once they're parsed, they're moved to the *TileData object.
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-261-1/+1
|
* [core] add support for stale responsesKonstantin Käfer2015-10-261-0/+4
| | | | We're now returning stale responses from cache. Those responses will have the `stale` flag set to true. Currently, all requesters in the core code discard stale responses, and cancel the request immediately after they got a non-stale response.
* [node] Handle tiles which 404 betterbsudekum2015-09-291-1/+1
|
* rewrite storage layer to be independent of the Map's event loopKonstantin Käfer2015-02-041-9/+5
|
* add etag support and if-none-match/if-modified-since to cocoa http handlingKonstantin Käfer2014-09-261-0/+1
|
* add retry timersKonstantin Käfer2014-09-241-0/+2
|
* do 304 requests and cache them in sqliteKonstantin Käfer2014-09-241-0/+23