aboutsummaryrefslogtreecommitdiff
path: root/core/io/http_client.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Allow body-up-to-EOF HTTP responsesPedro J. Estébanez2018-05-221-15/+49
| | | | | | Implements the same heuristic as Curl (and web browsers): if no `Content-Length`, no `Connection: keep-alive` and no chunked transfer encoding, assume th rest of the data until EOF is the body, gracefully setting the HTTP client back to the disconnected state. Theoretically, this is not compliant with HTTP 1.1, by which `keep-alive` is the default, but in practice, an explicit header is sent by servers.
* Revert "Unify http- and percent- encode/decode"Pedro J. Estébanez2018-04-121-3/+3
| | | | This reverts commit b76ee30917c63211ac9e94a21bebbddf518d169f.
* Enhance HTTPClient.query_string_from_dict()Pedro J. Estébanez2018-03-271-1/+21
|
* Unify http- and percent- encode/decodePedro J. Estébanez2018-03-271-1/+1
| | | | | There was a percent-prefixed version, which was exposed, and a http-prefixed version which was not (only to GDNative). This commit keeps the percent-prefixed versions, but with the http-prefixed implementations.
* Fix wrong SSL handshakePedro J. Estébanez2018-03-041-1/+1
| | | | The name of the remote host is passed to mbed TLS in all cases so the client hello message is correctly formed.
* Bind many more properties to scriptsBojidar Marinov2018-01-121-0/+3
| | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | 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-2/+2
|
* HTTP cleanup & better defaultsmhilbrunner2017-12-141-62/+66
|
* HTTPClient: Add PATCH method and missing HTTP status codesmhilbrunner2017-12-121-2/+17
|
* Implement HTTPClient in HTML5 platformLeon Krause2017-11-131-66/+69
| | | | | | | | | | | 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
* Remove HTTPClient::send_body_text and ::send_body_dataLeon Krause2017-10-261-12/+0
| | | | | These were never implemented, the request* methods provide parameters to send body data as part of the client's requests.
* Fixed a bug where ssl would force validation even though you told it not to.Nathan Warden2017-10-031-1/+1
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry2017-08-201-68/+68
|
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-5/+5
|
* Don't append standard ports to the request header.Martin Capitanio2017-06-131-2/+12
| | | | | | | Breaks the SSL communication with some servers, do the same that the other curl, wget, firefox & co clients do. Fixes #9146
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-324/+295
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Various fixes detected using PVS-Studio static analyzer.Thaer Razeq2017-02-281-1/+1
| | | | | | | - Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-131-21/+21
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* Merge pull request #7581 from Faless/v6_wild_bindRémi Verschelde2017-02-121-8/+1
|\ | | | | TCP/UDP listen bind to address and bugfixes
| * Remove set_ip_type from network classes (no longer needed)Fabio Alessandrelli2017-01-231-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | - TCP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `connect` -> resolve using best protocol (UNSPEC), socket from address type - UDP: - `listen` bind to wildcard "*" -> dual stack socket - `listen` bind to address -> socket from address type - `put_packet`/`put_var` -> resolve using TYPE_ANY (UNSPEC), socket from address type (to change socket type you must first call `close` it)
* | HTTPClient properly handle partial data in non-blocking modeFabio Alessandrelli2017-02-071-2/+4
|/ | | | | Use block to send DVector::Write out of scope in HTTPClient::read_response_body_chunk()
* removed duplicated functions in class hierarchy that were bound more than onceJuan Linietsky2017-01-141-6/+6
| | | | added a check to detect this case in the future
* Type renames:Juan Linietsky2017-01-111-15/+15
| | | | | | | | | | | | Matrix32 -> Transform2D Matrix3 -> Basis AABB -> Rect3 RawArray -> PoolByteArray IntArray -> PoolIntArray FloatArray -> PoolFloatArray Vector2Array -> PoolVector2Array Vector3Array -> PoolVector3Array ColorArray -> PoolColorArray
* Memory pool vectors (DVector) have been enormously simplified in code, and ↵Juan Linietsky2017-01-071-3/+3
| | | | renamed to PoolVector
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-22/+22
| | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* Merge pull request #7271 from Faless/ipv6_cleanupRémi Verschelde2017-01-021-4/+9
|\ | | | | Fixes and improvementes for IPv6 implementation.
| * Expose HTTP classes' set_ip_type to scriptingFabio Alessandrelli2016-12-131-4/+7
| |
| * Allow setting ip_type for TCP/UDP and HTTP classesFabio Alessandrelli2016-12-091-0/+4
| |
| * Migrate int.IP_TYPE_ constants to IP.TYPE_Fabio Alessandrelli2016-12-091-4/+2
| |
* | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
|/ | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* address type for http clientAriel Manzur2016-10-191-3/+4
|
* Improved binding system (ObjectTypeDB::bind_method) to be friendlier to ↵Juan Linietsky2016-06-221-2/+0
| | | | | | statically typed languages, should help in the Mono integration. Disabled by default.
* added missing status, closes #4361Juan Linietsky2016-06-201-0/+1
|
* Removed invalid DEFVAL for HTTPClient::request_rawIgnacio Etcheverry2016-06-011-1/+1
|
* remove trailing whitespaceHubert Jarosz2016-05-211-1/+1
|
* httpclient request withh raw_array bodyAlexander Holland2016-05-041-2/+56
|
* fix - HTTPClient connection keep-alive duplicate Headers #4208Alexander Holland2016-04-271-0/+1
|
* Added getter method for the connection property in HTTPClient. (#4336)Mounir Ybanez2016-04-181-0/+7
| | | | - Exposed a getter method for the private property named `connection` in HTTPClient class.
* remove trailing whitespaceHubert Jarosz2016-03-091-1/+1
|
* -Work on addon editor plugin (disabled by default)Juan Linietsky2016-03-041-4/+0
| | | | -New HTTPRequest node, to make HTTP requests simpler.
* adds original http headers to response_headersAriel Manzur2016-02-191-4/+4
|
* adds original http header to response_headersAriel Manzur2016-02-191-1/+1
|
* made headers case insensitiveAriel Manzur2016-01-111-2/+3
|
* comment some print_linesAlexander Holland2016-01-091-3/+3
|
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* Fixes the make_doc.sh, <, > and & signs in descriptions that cause the ↵Aren Villanueva2015-11-191-2/+13
| | | | | | | | parser to break. Documentation for HTTPClient. Added a query_string_from_dict method to HTTPClient to create a x-www-form-urlencoded valid query string for GET and POST messages. String now has http_escape() and http_unescape() methods to help facilitate the above query_string_from_dict method.