@@ -1,8 +1,7 @@
//! An HTTP client.
pub use crate::wit::zed::extension::http_client::{
- HttpMethod, HttpRequest, HttpResponse, HttpResponseStream, HttpResponseWithStatus,
- RedirectPolicy, fetch, fetch_fallible, fetch_stream,
+ HttpMethod, HttpRequest, HttpResponse, HttpResponseStream, RedirectPolicy, fetch, fetch_stream,
};
impl HttpRequest {
@@ -16,11 +15,6 @@ impl HttpRequest {
fetch(self)
}
- /// Like [`fetch`], except it doesn't treat any status codes as errors.
- pub fn fetch_fallible(&self) -> Result<HttpResponseWithStatus, String> {
- fetch_fallible(self)
- }
-
/// Executes the [`HttpRequest`] with [`fetch_stream`].
pub fn fetch_stream(&self) -> Result<HttpResponseStream, String> {
fetch_stream(self)