summaryrefslogtreecommitdiff
path: root/platform/node/src/node_request.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [node] Fix clang-tidy errors on the Node bindings headersThiago Marcos P. Santos2020-04-171-1/+1
| | | | As reported by clang-tidy-8.
* [core] Fix bugprone-virtual-near-miss errorsThiago Marcos P. Santos2020-03-301-9/+9
| | | | As reported by clang-tidy-8.
* Fixes problems associated with node 10 and NAN (#14847)Blake Thompson2019-06-261-30/+35
| | | | | | | | * Fixes problems associated with node 10 and NAN * Follow up removal of unnecessary linking to map object * Remove header left over from debugging
* [node] move to Nan 2.10.0Konstantin Käfer2018-05-221-1/+2
|
* Partially revert "[node] Fix memory test hanging after GlyphAtlas ↵John Firebaugh2017-07-211-10/+0
| | | | | | refactoring (#8394)" This reverts commit 5700c99e553c6e487649350505f438844056a1c8.
* [node] Fix memory test hanging after GlyphAtlas refactoring (#8394)Thiago Marcos P. Santos2017-03-141-0/+10
| | | Replies are assumed to be asynchronous after e3500c1f791be82.
* [node] remove internal NodeRequest class from public APIMike Morris2016-10-201-4/+1
|
* [node] switch to NodeRequest member fn callbackThiago Marcos P. Santos2016-09-061-8/+6
| | | | | | | | | For (hopefully) better performance than creating a new v8::Context to wrap each callback while still avoiding leaking memory with v8::FunctionTemplate. Adds a JavaScript shim in front of module.exports.Map to wrap the req.respond API internally and preserve the public callback-passing API, while still exporting the correct prototype.
* [core] Updated clang-tidy fixesBruno de Oliveira Abinader2016-08-051-2/+2
|
* [node] NodeRequest inherits from Nan::AsyncWorkerMike Morris2016-07-141-74/+66
| | | | | | | | drop NodeRequest::Create, move MakeCallback to NodeRequest::Execute rework Respond -> HandleCallback modern NAN style updates
* [node] don't fire callback for canceled AsyncRequestKonstantin Käfer2016-05-261-2/+35
|
* [core] move from microsecond precision timestamp to integer second precisionKonstantin Käfer2016-05-131-2/+4
|
* [node] Fix handling of response callback with no arguments; add testJohn Firebaugh2016-02-191-1/+1
|
* [core] Use better types for modified / expires / etagJohn Firebaugh2016-01-211-3/+2
|
* [node] extract the error message from the Error objectKonstantin Käfer2016-01-141-2/+16
| | | | this avoids double "Error: Error: reason" messages
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-271-2/+5
| | | | | | | 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.
* [node] Allow GC in spite of reference loops through the request methodJohn Firebaugh2015-11-201-1/+0
| | | | | | | | | | | | | | The following produces a reference cycle: var map = new mbgl.Map({ request: function () { ... } }); map has a reference to the request function, which has a reference to its closure, which has a reference to map. Storing a the map options in an internal field, rather than a Persistent, allows V8 to collect the reference cycle when none of its members have other references.
* [core] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-161-50/+18
|
* [core] Make DefaultFileSource react to all NetworkStatus changesKonstantin Käfer2015-11-021-6/+5
|
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-261-2/+2
|
* [node] Handle tiles which 404 betterbsudekum2015-09-291-1/+3
|
* [node] change request semanticsMike Morris2015-09-101-3/+1
| | | | | Passes a second, callback argument to the request implementation instead of needing to call req.respond.
* Nan 2.0John Firebaugh2015-09-091-46/+45
|
* Remove debug loggingJohn Firebaugh2015-08-311-3/+0
|
* more logging, don't respond to cancelled requestsMike Morris2015-08-271-2/+3
|
* add request/respond loggingMike Morris2015-08-271-1/+5
|
* move node-mbgl to platform/node/ directoryMike Morris2015-08-211-0/+142