summaryrefslogtreecommitdiffstats
path: root/platform/javascript/http_client_javascript.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Net] Makes HTTPClient a custom instance class.Fabio Alessandrelli2021-06-231-53/+33
|
* [Net] Unify HTTPClient request and request_raw.Fabio Alessandrelli2021-06-231-16/+1
|
* Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-1/+1
| | | | | | | | We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
* [HTML5] Replace XMLHttpRequest with Fetch.Fabio Alessandrelli2021-03-061-79/+104
| | | | | | This has some advantages: - Streaming/chunked response support. - Broader headers support.
* [HTML5] Fix HTTPClient request_raw.Fabio Alessandrelli2021-02-111-2/+11
| | | | | Now send data according to the spec, properly handle null data. Simplify JS code since we are at it.
* Fix JavaScript platform after MainLoop methods rename.Fabio Alessandrelli2021-01-101-2/+2
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Fix missed renamings from empty() to is_empty()Rémi Verschelde2020-12-291-5/+5
| | | | Those were missed in #44401 or added by later PRs.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-22/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-141-9/+1
| | | | | | | | | | Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
* Replace NULL with nullptrlupoDharkael2020-04-021-2/+2
|
* Fix Javascript platform after PoolVector removal.Fabio Alessandrelli2020-03-081-17/+6
| | | | Eval should be rechecked.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-16/+16
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Add download_chunk_size property to HTTPRequest.Fabio Alessandrelli2019-11-241-0/+4
| | | | | | This allows setting the `read_chunk_size` of the internal HTTPClient. This is important to reduce the allocation overhead and number of file writes when downloading large files, allowing for better download speed.
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", ↵Robin Hübner2019-08-091-8/+4
| | | | "modules/gdnative", "modules/gdscript" directories.
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix compiler warnings in HTML5 platformLeon Krause2018-10-021-1/+5
|
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+1
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Fix bug in HTML5 HTTPClient.Fabio Alessandrelli2018-03-301-1/+1
| | | | | The URL parameter already has a slash, adding an extra one results in an invalid resource path
* Flush HTTPClient response data only on request/close in HTML5 platformLeon Krause2018-02-171-2/+0
|
* Warn when polling HTTPClient synchronously in HTML5 platformLeon Krause2018-02-171-0/+19
|
* Disable insecure HTTP methods CONNECT and TRACE in HTML5 platformLeon Krause2018-02-171-0/+2
|
* Fix HTML5 HTTPClient response header retrievalLeon Krause2018-02-161-2/+4
|
* Fix HTML5 HTTPClient failure detectionLeon Krause2018-02-161-11/+7
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-1/+2
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix javascript build error and improve #14604Fabio Alessandrelli2017-12-151-3/+3
|
* HTTP cleanup & better defaultsmhilbrunner2017-12-141-15/+20
|
* Implement HTTPClient in HTML5 platformLeon Krause2017-11-131-0/+282
Limitations: - Subject to same-origin policy - No persistent connection (but simulated for compatibility) - No blocking mode - No StreamPeer access - No chunked responses - Cannot disable host verification