librespot/core/src
Daniel M b588d9fd07 Keep using the same hyper client
- Keep using the same hyper client instead of building a new one for
  each request
- This allows the client to reuse connections and improves the
  performance of multiple requests by almost 2x.
- The playlist_tracks example takes 38 secs before and 20 secs after the
  change to enumerate a 180 track playlist
- To avoid carrying the hyper Client generics through the whole project,
  `ProxyConnector` is always used as the Connector, but disabled when
  not using a proxy.
- The client creation is done lazily to keep the `HttpClient::new`
  without a `Result` return type
2022-08-04 18:37:32 +02:00
..
connection Send platform-dependent client token request 2022-01-26 22:53:30 +01:00
dealer Silence compiler warning 2022-02-23 17:08:43 -06:00
mercury Register message listeners before connecting 2022-01-16 01:14:00 +01:00
apresolve.rs Fix panic in ApResolver::resolve (#1038) 2022-08-03 20:01:03 +02:00
audio_key.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
authentication.rs Merge branch 'dev' into new-api and update crates 2022-07-27 23:31:11 +02:00
cache.rs Merge branch 'dev' into new-api and update crates 2022-07-27 23:31:11 +02:00
cdn_url.rs Pass by reference 2022-08-03 22:26:52 +02:00
channel.rs Remove assertions for what we know works well 2022-01-25 20:58:39 +01:00
component.rs Change to parking_lot and remove remaining panics 2021-12-26 23:02:02 +01:00
config.rs Merge pull request #1039 from roderickvd/rust-2021-edition 2022-08-03 20:04:31 +02:00
date.rs Fix playlist metadata fields parsing (#1019) 2022-07-28 18:46:16 +02:00
diffie_hellman.rs Almost eliminate util module 2021-04-10 12:50:30 +02:00
error.rs Fix compilation for with-dns-sd 2021-12-27 00:21:42 +01:00
file_id.rs Migrate to Rust 2021 2022-08-02 21:42:38 +02:00
http_client.rs Keep using the same hyper client 2022-08-04 18:37:32 +02:00
lib.rs Migrate to Rust 2021 2022-08-02 21:42:38 +02:00
packet.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
proxytunnel.rs Add back hyper-proxy 2021-03-27 15:36:33 +01:00
session.rs Relax some non-fatal events to WARN level 2022-07-30 22:39:05 +02:00
socket.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
spclient.rs Fix SpClient::get_playlist endpoint generation 2022-08-04 00:09:30 +02:00
spotify_id.rs Pass by reference 2022-08-03 22:26:52 +02:00
token.rs Add client-token header to spclient requests 2022-08-02 23:06:02 +02:00
util.rs Change panics into Result<_, librespot_core::Error> 2021-12-26 21:18:42 +01:00
version.rs Update http, once_cell, vergen 2022-01-09 01:03:47 +01:00