stevenarella/src
iceiix b17f296ab4
Replace hyper with reqwest (#7)
An old version of hyper was used before (0.8.0), in the process of updating to hyper 0.12.11, found this higher-level replacement/wrapper, reqwest 0.9.4 which is simpler to use than the latest hyper and serves the purpose of a simple HTTP client well

* Begin updating to hyper 0.12.11

https://github.com/iceiix/steven/issues/4#issuecomment-425759778

* Use type variables for hyper::Client

* Fix setting header syntax, Content-Type: application/json, 17->13

* Parse strings into URLs with url.parse::<hyper::Uri>().unwrap()

b20971cb4e/examples/client.rs (L25)

* Use hyper::Request::post() then client.request() since client.post() removed

* wait() on the ResponseFuture to get the Result

* try! to unwrap the Result

* status() is now a method

* Concatenate body chunks unwrap into bytes, then parse JSON from byte slice, instead of from_reader which didn't compile

* Replace send() with wait() on ResponseFuture

* Parse HeaderValue to u64

* Slices implement std::io::Read trait

* Read into_bytes() instead of read_to_end()

* Disable boxed logger for now to workaround 'expected function, found macro'

* Remove unnecessary mutability, warnings

* Hack to parse twice to avoid double move

* Use hyper-rustls pure Rust implementation for TLS for HTTPS in hyper

* Start converting to reqwest: add Protocol::Error and reqwest::Error conversion

* Use reqwest, replacing hyper, in protocol

* Convert resources to use reqwest instead of hyper

* Convert skin download to reqwest, instead of hyper

* Remove hyper

* Revert unnecessary variable name change req/body to reduce diff

* Revert unnecessary whitespace change to reduce diff, align indentation on .

* Fix authenticating to server, wrong method and join URL

* Update Cargo.lock
2018-10-27 17:03:34 -07:00
..
console Replace hyper with reqwest (#7) 2018-10-27 17:03:34 -07:00
ecs Fixed another batch of clippy warnings 2016-09-15 15:15:52 +01:00
entity Fix warning: unnecessary parentheses around function argument, new in nightly-2018-02-15 2018-09-29 23:28:38 -07:00
gl Check glGetError() in rendering loop 2018-10-07 13:53:50 -07:00
model Update to serde_json 1.0 (#6) 2018-10-23 18:47:21 -07:00
nbt Update to serde_json 1.0 (#6) 2018-10-23 18:47:21 -07:00
protocol Replace hyper with reqwest (#7) 2018-10-27 17:03:34 -07:00
render Replace hyper with reqwest (#7) 2018-10-27 17:03:34 -07:00
screen Update to serde_json 1.0 (#6) 2018-10-23 18:47:21 -07:00
server Update to serde_json 1.0 (#6) 2018-10-23 18:47:21 -07:00
types Fixed another batch of clippy warnings 2016-09-15 15:15:52 +01:00
ui Update to rand 0.5.5 for https://github.com/iceiix/steven/issues/4 2018-09-30 19:05:20 -07:00
world Use std::time for 5ms light updates instead of time crate 2018-09-29 22:36:55 -07:00
auth.rs Separate the console and console vars. Removes the need to lock on the console to read vars 2016-04-21 11:40:50 +01:00
chunk_builder.rs Update to rand 0.5.5 for https://github.com/iceiix/steven/issues/4 2018-09-30 19:05:20 -07:00
format.rs Update to serde_json 1.0 (#6) 2018-10-23 18:47:21 -07:00
item.rs Clean up the protocol implementation to use generics instead of trait objects 2016-04-08 18:46:07 +01:00
macros.rs Base implementation for worlds/blocks 2016-03-18 22:24:30 +00:00
main.rs Replace hyper with reqwest (#7) 2018-10-27 17:03:34 -07:00
resources.rs Replace hyper with reqwest (#7) 2018-10-27 17:03:34 -07:00
settings.rs Separate the console and console vars. Removes the need to lock on the console to read vars 2016-04-21 11:40:50 +01:00