Update http crate name (#15041)

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2024-07-23 15:01:05 -07:00
committed by GitHub
parent d36ebc8c74
commit 855048041d
89 changed files with 184 additions and 180 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ use smol::future::FutureExt;
pub use async_context::*;
use collections::{FxHashMap, FxHashSet, VecDeque};
pub use entity_map::*;
use http::{self, HttpClient};
use http_client::HttpClient;
pub use model_context::*;
#[cfg(any(test, feature = "test-support"))]
pub use test_context::*;
@@ -114,7 +114,7 @@ impl App {
Self(AppContext::new(
current_platform(false),
Arc::new(()),
http::client(None),
http_client::client(None),
))
}
@@ -125,7 +125,7 @@ impl App {
Self(AppContext::new(
current_platform(true),
Arc::new(()),
http::client(None),
http_client::client(None),
))
}
+1 -1
View File
@@ -104,7 +104,7 @@ impl TestAppContext {
let foreground_executor = ForegroundExecutor::new(arc_dispatcher);
let platform = TestPlatform::new(background_executor.clone(), foreground_executor.clone());
let asset_source = Arc::new(());
let http_client = http::FakeHttpClient::with_404_response();
let http_client = http_client::FakeHttpClient::with_404_response();
let text_system = Arc::new(TextSystem::new(platform.text_system()));
Self {
+3 -3
View File
@@ -13,7 +13,7 @@ use image::{ImageBuffer, ImageError};
#[cfg(target_os = "macos")]
use media::core_video::CVImageBuffer;
use http;
use http_client;
use thiserror::Error;
use util::ResultExt;
@@ -413,7 +413,7 @@ impl Asset for Image {
pub enum ImageCacheError {
/// An error that occurred while fetching an image from a remote source.
#[error("http error: {0}")]
Client(#[from] http::Error),
Client(#[from] http_client::Error),
/// An error that occurred while reading the image from disk.
#[error("IO error: {0}")]
Io(Arc<std::io::Error>),
@@ -423,7 +423,7 @@ pub enum ImageCacheError {
/// The URI of the image.
uri: SharedUri,
/// The HTTP status code.
status: http::StatusCode,
status: http_client::StatusCode,
/// The HTTP response body.
body: String,
},
@@ -11,7 +11,7 @@ use calloop_wayland_source::WaylandSource;
use collections::HashMap;
use filedescriptor::Pipe;
use http::Url;
use http_client::Url;
use smallvec::SmallVec;
use util::ResultExt;
use wayland_backend::client::ObjectId;