summaryrefslogtreecommitdiffstats
path: root/scene/main/http_request.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@fd4c29a189e53a1e085df5b9b9a05cac9351b3efSpartan3222024-11-191-1/+1
|\
| * Use `(r)find_char` instead of `(r)find` for single charactersA Thousand Ships2024-11-171-1/+1
| |
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Parse fragment from URLHaoyu Qiu2024-09-271-1/+2
|
* [Core] Add case-insensitive `String::containsn`A Thousand Ships2024-05-081-1/+1
|
* Improve error reporting in the asset library and in related typesYuri Sizov2024-01-261-2/+4
| | | | | | | | This also makes errors related to asset image loading verbose-only, because, frankly, users can't do much about those errors. Spamming them with error messages about some assets on the frontend being broken is pointless.
* Add THREADS_ENABLED macro in order to compile Godot to run on the main threadAdam Scott2024-01-171-0/+2
|
* Update deferred calls to use Callableskobewi2024-01-091-3/+1
|
* Fix wait for thread not startedSamuele Panzeri2023-04-271-1/+3
|
* [NET] Refactor TLS configuration.Fabio Alessandrelli2023-01-281-8/+13
| | | | | | | | | | | | | Use a TLSOptions configuration object which is created via static functions. - "TLSOptions.client": uses the standard CA and common name verification. - "TLSOptions.client_unsafe": uses optional CA verification (i.e. if specified) - "TLSOptions.server": is the standard server configuration (chain + key) This will allow us to expand the TLS configuration options to include e.g. mutual authentication without bloating the classes that uses StreamPeerTLS and PacketPeerDTLS as underlying peers.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* [Net] Fix HTTPRequest gzip with high compression ratio.Fabio Alessandrelli2022-11-201-15/+34
| | | | | | Decompress each body chunk over multiple iterations, this causes more reallocations, but it ensures decompression will not fail no matter the compression ratio.
* [HTTPRequest] Cleanup, refactor deferred call.Fabio Alessandrelli2022-09-201-26/+26
|
* [HTTPRequest] Body streaming decompresison.Fabio Alessandrelli2022-09-201-38/+39
| | | | Using a StreamPeerGZIP (which acts as a ringbuffer).
* [Net] Rename "ssl" references to "tls" in methods and members.Fabio Alessandrelli2022-09-081-13/+13
|
* Add suffixes to all nodes and resourcesFireForge2022-06-111-3/+3
|
* Narrow FileAccess scope to prevent deadlocks.bruvzg2022-04-121-1/+1
|
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-12/+3
|
* Fix some issues found by cppcheck.bruvzg2022-04-061-1/+1
|
* [Net] Change HTTPRequest timeout type to double.Fabio Alessandrelli2022-03-271-3/+3
| | | | | For consistency with the Timer class and general time representation inside the engine.
* Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-13/+15
|
* Merge pull request #56771 from mhilbrunner/unacceptableFabio Alessandrelli2022-02-021-25/+23
|\ | | | | Verify custom HTTP headers, fix off by one error
| * Verify custom HTTP headers, fix off by one errorMax Hilbrunner2022-01-271-3/+3
| |
| * HTTP comment cleanupMax Hilbrunner2022-01-271-23/+21
| |
* | Vectors: Use clear() and has().Anilforextra2022-02-021-4/+4
|/ | | | | | Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
* [Net] Fix HTTPRequest memory leak in compressed responses.Fabio Alessandrelli2022-01-241-10/+5
| | | | When accept_gzip = true.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Merge pull request #55747 from timothyqiu/editor-proxyFabio Alessandrelli2021-12-161-0/+11
|\ | | | | Add proxy support for the editor
| * Add proxy support for the editorHaoyu Qiu2021-12-091-0/+11
| | | | | | | | | | | | | | | | | | | | * Adds proxy support for `HTTPRequest`. * Adds `network/http_proxy/{host,port}` editor settings. * Labeled as "HTTP Proxy" and it will be used for both HTTP and HTTPS requests. This is the same convention as seen in Android Studio's proxy settings. * Makes Asset Library and Export Template Manager use proxy according to the editor settings.
* | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-2/+2
|/ | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Fix missing argument names in bindingsRémi Verschelde2021-10-091-1/+1
| | | | | | While at it, tweak some boolean setters to use `p_enabled` for the bool. Also renames `draw_minimap()` to `set_draw_minimap()`.
* Don't memcpy to nullptr even if length is zeroHaoyu Qiu2021-09-291-3/+5
|
* Fix some unnecessary includesAaron Franke2021-08-131-1/+1
|
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-2/+2
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-5/+5
|
* Optimize StringName usagereduz2021-07-181-22/+22
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* [Net] Makes HTTPClient a custom instance class.Fabio Alessandrelli2021-06-231-1/+1
|
* [Net] Unify HTTPClient request and request_raw.Fabio Alessandrelli2021-06-231-1/+2
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-1/+1
|
* [Net] Fix HTTPRquest store_buffer error.Fabio Alessandrelli2021-05-311-9/+11
| | | | | HTTPRquest no longer call store_buffer/append_array when the chunk size is 0.
* Merge pull request #48205 from Faless/net/4.x_url_parsingFabio Alessandrelli2021-05-031-27/+10
|\ | | | | [Net] Implement String::parse_url for parsing URLs.
| * [Net] Implement String::parse_url for parsing URLs.Fabio Alessandrelli2021-04-261-27/+10
| | | | | | | | | | | | | | | | Splits the URL into (scheme, host, port, path). Supports both literal IPv4 and IPv6. Strip credentials when present (e.g. http://user:pass@example.com/). Use that function in both HTTPRequest and WebSocketClient.
* | 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.
* Style: Apply clang-tidy's `modernize-use-nullptr`Rémi Verschelde2021-04-051-1/+1
|
* Fixes small typos and grammar correctionAnshul7sp12021-03-121-1/+1
|
* Merge pull request #35246 from zaksnet/disconnect-while-downloadingFabio Alessandrelli2021-03-021-0/+3
|\ | | | | Disconnect while downloading
| * Update scene/main/http_request.cppZak Stam2021-03-021-2/+3
| | | | | | Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
| * Disconnect while downloadingZak2020-02-261-0/+2
| | | | | | Previously if a disconnect occured while downloading a non recoverable error was displayed. This PR attempts to fix this by making sure `request_completed` signal is emitted with an `STATUS_CONNECTION_ERROR` response code.
* | [Net] Better EOF handling in HTTPRequest.Fabio Alessandrelli2021-02-271-0/+1
| | | | | | | | | | | | This fix request_completed being emitted two times, the first with the result, the second as a failure when retrieving responses served with read-until-EOF.