15 Commits

Author SHA1 Message Date
Jonas Herzig
c71b60ef70 Add convertion to/from Request/Response from/to http::Request/Response 2018-09-11 16:56:25 +02:00
Jonas Herzig
74dad12056 Fix test compilation 2018-09-11 15:00:52 +02:00
Jörg Sommer
d4578a835d Use Hyper::Body as default for Endpoint
This makes many code more compact.
2018-08-31 12:35:44 +02:00
Jörg Sommer
08c0d14221 Add Error(Hyper) for errors originated from Hyper
During the parsing of the HTTP responses an error might come from
*Hyper*. To pass this error down to the caller, we need an entry in
`Error`.
2018-08-31 12:31:46 +02:00
Jimmy Cuadra
474644ff66 Add a nonexhaustive variant to Error. 2017-09-08 17:32:42 -07:00
Jimmy Cuadra
9ff74ba776 Use the crates.io release of http. 2017-09-08 17:29:19 -07:00
Jimmy Cuadra
6ef1776aed rustfmt 2017-08-01 18:17:09 -07:00
Jimmy Cuadra
35c2e6edd8 Swap hyper for the http crate. 2017-08-01 18:05:44 -07:00
Jimmy Cuadra
4893be93f8 Impl conversion from serde_urlencoded errors. 2017-06-30 18:14:24 -07:00
Jimmy Cuadra
3635fe51ac Use FutureFrom instead of TryFrom for responses. 2017-05-14 04:00:54 -07:00
Jimmy Cuadra
517235b3e9 Add an error type. 2017-05-14 02:48:35 -07:00
Jimmy Cuadra
5a4661c408 Revise API to convert between associated types and Hyper request/response types. 2017-05-11 02:39:22 -07:00
Jansen Jan
b3eb392ce5 Add flags and change String to &'static str 2017-01-07 15:10:55 +01:00
Jimmy Cuadra
f88588f392 Require that Endpoint::QueryParams be Deserialize + Serialize. 2017-01-07 05:19:45 -08:00
Jimmy Cuadra
0fd9fb4889 ruma-api 2016-12-15 01:50:31 -08:00