94 Commits

Author SHA1 Message Date
Jonas Platte
92826df304
client: Add support for isahc as an HTTP client 2021-05-01 21:20:11 +02:00
Jonas Platte
23799cb702
client: Rename HttpClientExt methods to be much less likely to conflict with inherent methods 2021-05-01 21:20:11 +02:00
Jonas Platte
e3beb208e5
client: Use http_client::Dummy for doctests 2021-05-01 21:20:10 +02:00
Jonas Platte
a2b64df5d3
api: Require all EndpointErrors to be Send 2021-05-01 21:20:10 +02:00
Jonas Platte
cee6e2e365
client: Add send_request_as for application services 2021-05-01 21:20:10 +02:00
Jonas Platte
20dfd7c328
client: Allow request customization to be fallible 2021-05-01 21:20:10 +02:00
Jonas Platte
9bbad70592
client: Use ResponseResult type alias in more places 2021-05-01 21:20:07 +02:00
Jonas Platte
71b4463306
client: Small refactoring 2021-05-01 21:20:07 +02:00
Jonas Platte
ac78c855a8
client: Replace send_request_with_url_params with send_customized_request 2021-05-01 21:20:07 +02:00
Jonas Platte
0fa686ac1d
client: Add a dummy http client 2021-05-01 21:20:07 +02:00
Jonas Platte
db9262fa43
client: Add support for reqwest as an HTTP client 2021-05-01 21:20:07 +02:00
Jonas Platte
c7742085a8
client: Add HttpClientExt 2021-05-01 21:20:07 +02:00
Jonas Platte
e94e2e7b2b
client: Fix doctests by not compiling them
… and move the sync example to sync's docs.
2021-05-01 21:20:07 +02:00
Jonas Platte
c692d18797
client: Add an HttpClient abstraction and implement it for hyper::Client 2021-05-01 21:20:07 +02:00
Jonas Platte
89b191c143
client: Make Client generic over the underlying HTTP client
… and allow construction of a Client with a custom HTTP client, but
nothing more yet.
2021-05-01 21:20:06 +02:00
Jonas Platte
b956178c53
client: Fix crate docs 2021-05-01 21:20:06 +02:00
Jonas Platte
15c9e470c8
client: Remove session data other than the access token 2021-05-01 21:20:06 +02:00
Jonas Platte
e2be614552
client: Put client-api specific functionality behind a feature flag 2021-05-01 21:20:06 +02:00
Jonas Platte
f818b53ca1
Make conversions from Ruma types to http types generic
So users can select the Body type that makes the most sense for them.
2021-04-23 13:26:10 +02:00
Johannes Becker
0ca5785ead api: Replace access_token Option with SendAccessToken enum 2021-04-23 10:56:04 +02:00
Jonas Platte
b860316437
Release ruma-client 0.5.0-alpha.2 2021-04-17 20:31:44 +02:00
Jonas Platte
4a93d1c569
Release ruma 0.0.3 2021-04-17 20:29:49 +02:00
Jonas Platte
54eb9ef7a8
Release ruma-client-api 0.10.0-alpha.3 2021-04-17 19:57:34 +02:00
Jonas Platte
de949815af
Release ruma-api 0.17.0-alpha.4 2021-04-17 19:39:02 +02:00
Jonas Platte
b3c646a2b7
Release ruma-events 0.22.0-alpha.3 2021-04-17 19:33:51 +02:00
Jonas Platte
6581eb8606
Release ruma-common 0.5.0 2021-04-17 19:03:42 +02:00
Jonas Platte
c1693569f1
api: Replace bytes::Buf by AsRef<u8> for reading
This allows us to switch back to serde_json::from_slice instead of
serde_json::from_reader, because the latter is significantly slower.

See https://github.com/serde-rs/json/issues/160
2021-04-13 22:12:16 +02:00
Jonas Platte
10fb4c9910
Release ruma-common 0.4.0 2021-04-13 21:29:26 +02:00
Jonas Platte
2a8b4a0478
Release ruma-identifiers 0.19.0 2021-04-13 21:12:24 +02:00
Jonas Platte
2ac020173b
api: Introduce IncomingResponse trait 2021-04-12 20:38:22 +02:00
Jonas Platte
7acd73ec9a
client: Rewrap some lines 2021-04-09 12:14:35 +02:00
Kévin Commaille
963400979b
docs: Harmonize ruma modules descriptions 2021-04-07 12:14:49 +02:00
Jonas Platte
22d9f30c67
client: Clean up dependency features 2021-04-06 13:27:08 +02:00
Jonas Platte
1bf4157a89
Add favicon and logo URLs for rustdoc 2021-04-05 11:42:07 +02:00
Jonas Platte
39a8c26263
Release ruma-identifiers 0.18.1 2021-04-03 17:56:01 +02:00
Jonas Platte
83ee0e72e2
Release ruma-common 0.3.1 2021-04-03 17:21:55 +02:00
Jonas Platte
36df3e341a
Release ruma-common 0.3.0 2021-03-31 13:47:24 +02:00
Jonas Platte
b79fd0c3aa
Release ruma-identifiers 0.18.0 2021-03-23 21:08:44 +01:00
Jonas Platte
c910d57b14
Release ruma-serde 0.3.1 2021-03-23 20:58:53 +01:00
Kévin Commaille
02e6c935b3
client-api: Move user in login::Request to identifier in login::LoginInfo::Password 2021-03-15 10:36:54 +01:00
Jonas Platte
a20c75d536
Fix import grouping issues 2021-02-25 20:55:19 +01:00
Devin Ragotzy
12c294422b
Move new_content and relates_to fields to MessageEventContent struct
MessageEventContent used to be an enum, it now has a msgtype field where
the enum (now called MessageType) sits.
2021-02-13 00:29:07 +01:00
Jonas Platte
891db9083b
Clean up cargo features 2021-02-02 19:21:45 +01:00
Jonas Platte
2edddd519e
Remove redundant imports 2021-02-01 19:17:52 +01:00
Jonas Platte
ca1f334ded
Remove documentation links from all Cargo.tomls
It was wrong for ruma-federation-api and useless for all others since
crates.io will link to docs.rs automatically if no link is given.
2021-01-17 17:00:09 +01:00
Jonas Platte
d8b268ed76
client: Fix import order 2021-01-08 21:32:40 +01:00
Jonas Platte
25b43d2bf9
Replace futures-util dev-dependency with tokio-stream 2021-01-07 15:11:26 +01:00
Jonas Platte
1db0ad1bea
client: Replace futures_util::stream::try_unfold with async_stream::try_stream! 2021-01-04 16:12:12 +01:00
Jonas Platte
1c47963bef
Release ruma-client 0.5.0-alpha.1 2021-01-02 15:37:18 +01:00
Jonas Platte
a377ac87da
Release ruma 0.0.2 2021-01-02 15:35:45 +01:00