summaryrefslogtreecommitdiff
path: root/platform/default/http_request_curl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [all] Replace HTTPContextBase/HTTPRequestBase with FileSourceJohn Firebaugh2016-04-141-549/+0
|
* [core] fix various compilation issuesKonstantin Käfer2016-04-041-2/+2
|
* [core] Throttle the number of concurrent requests to 20John Firebaugh2016-02-101-0/+4
|
* [all] Don't interpret 404s on non-tile resources as "no content"John Firebaugh2016-02-101-0/+2
|
* [all] Do not set Response data for 404sJohn Firebaugh2016-02-101-10/+5
| | | | For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent.
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-251-1/+2
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* [core] Include prior values of caching headers in ResourceJohn Firebaugh2016-01-221-41/+17
| | | | This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations.
* [core] Merge rfc1123, iso8601, and parse_date into chrono.hpp and fix their APIJohn Firebaugh2016-01-221-2/+1
|
* [core] Use better types for modified / expires / etagJohn Firebaugh2016-01-211-10/+10
|
* [core] Eliminate RequestBaseJohn Firebaugh2016-01-211-2/+2
| | | | HTTPRequestBase can now itself be the base class.
* [core] Restore existing response bodyJohn Firebaugh2016-01-141-0/+2
| | | | Until #2721 lands we still need this.
* [core] Add an explicit "not modified" indicator to ResponseJohn Firebaugh2016-01-141-10/+12
|
* [core] Remove `Resource` dependency from low-level classesJohn Firebaugh2015-12-231-8/+7
| | | | These classes should not be coupled to domain-specific resource types.
* [core] Removed libuv dependency from HTTPCurl*Thiago Marcos P. Santos2015-12-011-68/+19
| | | | | Moved the fd watcher to the RunLoop. So far only needs to be implemented by platforms using HTTPCurlRequest et al.
* [core] Expose fewer RunLoop implementation details in headerJohn Firebaugh2015-12-011-1/+1
|
* [curl] Make curl request less dependent on libuvThiago Marcos P. Santos2015-12-011-27/+18
|
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-271-4/+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-123/+41
|
* [core] Move parseCacheControl() up in the class hierarchyThiago Marcos P. Santos2015-10-261-16/+0
| | | | Avoid duplicating it on all the ports.
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-261-3/+9
|
* [core] bump libuv to 1.7.5 across all platformsMike Morris2015-10-141-20/+10
| | | | | | UV_ASYNC_PARAMS and UV_TIMER_PARAMS for libuv <= 0.10 compatibility use st_mtim.tv_sec in libuv > 0.10.x
* [ios] [android] Use Response::NotFound in other HTTP implementations tooJohn Firebaugh2015-09-291-0/+3
|
* Restore libcurl HTTP on AndroidLeith Bade2015-09-231-0/+109
|
* Use OkHTTP to implement HTTPContext on Android.Leith Bade2015-08-111-109/+0
| | | | Closes #823
* support cURL versions older than 7.21.6Konstantin Käfer2015-08-041-0/+4
| | | | prior to cURL 7.21.6, CURLOPT_ACCEPT_ENCODING was called CURLOPT_ENCODING
* don't use certain STL functionsKonstantin Käfer2015-08-041-2/+4
| | | | 
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
* s/HTTPContext/HTTPContextBase/Bruno de Oliveira Abinader2015-07-281-4/+4
|
* Replaced 'override' with 'final' for non-public interfacesBruno de Oliveira Abinader2015-07-281-1/+1
|
* Created HTTPRequestBase as base for HTTP requestsBruno de Oliveira Abinader2015-07-281-28/+27
| | | | | | | | - Added HTTPRequestBase (inherits from RequestBase) - retry() is now a pure virtual in HTTPRequestBase - Moved cancelled bool to HTTPRequestBase - HTTPContext now handles only HTTPRequestBase* - Renamed HTTPNSURLRequest, HTTPCURLRequest
* Moved ResponseStatus to its own headerBruno de Oliveira Abinader2015-07-281-20/+1
|
* Make one arg ctors explicitThiago Marcos P. Santos2015-07-111-1/+1
|
* Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-261-5/+5
|
* Fix CURL handle leak (fixes #1394)John Firebaugh2015-05-011-0/+5
|
* Restructure *Request and ContextJohn Firebaugh2015-04-281-83/+68
| | | | | | | | The previous implementation, based on thread-local storage, did not ensure that the context was destructed before the FileSource run loop. This resulted in implementations attempting to uv_close handles for a loop that had already been destroyed. This change also fixes #1262.
* Remove RequestBase::startJohn Firebaugh2015-04-281-17/+11
| | | | | | Requests are always started immediately upon construction. While here, use typed pointers, not void*.
* Separate RequestBase from DefaultFileSource internalsJohn Firebaugh2015-04-281-10/+3
| | | | | | | | SharedRequestBase was trying to do two different jobs: be a base class for Asset/HttpRequest and track internal state for DefaultFileSource. Now we have RequestBase for the former, and DefaultFileRequest for the latter.
* pointer ⇢ referenceJohn Firebaugh2015-04-281-1/+1
|
* make implementation files private headersKonstantin Käfer2015-04-131-2/+2
|
* hide Thread<> and separate the Implementation objectKonstantin Käfer2015-04-131-1/+1
|
* convert DefaultFileSource to use util::Thread<>Konstantin Käfer2015-04-101-12/+12
|
* Add typedefs for std::chrono::steady_clock typesJohn Firebaugh2015-04-021-1/+2
|
* add ca bundle loading back to CURLKonstantin Käfer2015-02-171-4/+118
|
* refactor makefileKonstantin Käfer2015-02-041-2/+10
|
* fixes for linuxKonstantin Käfer2015-02-041-3/+3
|
* rewrite storage layer to be independent of the Map's event loopKonstantin Käfer2015-02-041-0/+640