Josh McKinney
2f3daffa74
fix: authenticate in page_next/page_prev calls
...
Fixes the following error:
error err=Couldn't get next page
Caused by:
0: Error encountered in the HTTP backend while requesting a route.
1: HTTP status client error (401 Unauthorized) for url (https://hachyderm.io/api/v1/timelines/home?max_id=110196530215835290 )
2023-04-14 05:05:44 -07:00
D. Scott Boggs
e662eac46a
Fix routes which take an Id type; fix doctests
2023-01-24 15:33:49 -05:00
D. Scott Boggs
f037379d0f
drop dependency on hyper-old-types in favor of parse_link_header
2022-12-29 14:06:07 -05:00
D. Scott Boggs
5c764185bb
Rewrite awkward code
2022-12-28 15:35:39 -05:00
Matthias Beyer
af63e75e5d
Fix clippy: Remove unneeded reference
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-12-27 15:50:28 +01:00
D. Scott Boggs
ed497d96d4
Improve remote error handling
2022-12-23 12:18:03 -05:00
D. Scott Boggs
2ec3bd42ec
Rename elefren to mastodon-async
2022-12-23 12:18:03 -05:00
D. Scott Boggs
648de8c8e5
Add read_response helper
...
This fixes a bug where a chunked response would be partially read and then hang forever waiting for another chunk, and adds additional debug logging to the request process.
2022-12-07 16:21:00 -05:00
D. Scott Boggs
c9fc25a0c9
add logging
2022-12-07 15:58:28 -05:00
D. Scott Boggs
e69d92f71e
Update client to work asynchronously
...
- Use reqwest's async client
- Convert items_iter() to a futures::Stream
- make Mastodon client an Arc smart pointer, removing the need for OwnedPage.
- remove MastodonClient and HttpSender traits; these can be re-added once async trait fns are stabilized
- make EventStream a futures::Stream
2022-12-05 10:35:29 -05:00
D. Scott Boggs
f054c7d805
Update Rust Edition; Update dependencies
...
Async needs added
2022-11-29 18:50:29 -05:00
D. Scott Boggs
96b16c62d9
initial state; elefren 0.22.0
2022-11-27 09:44:43 -05:00