diff --git a/josh-proxy/src/bin/josh-proxy.rs b/josh-proxy/src/bin/josh-proxy.rs
index d775492e..5f0ffa7f 100644
--- a/josh-proxy/src/bin/josh-proxy.rs
+++ b/josh-proxy/src/bin/josh-proxy.rs
@@ -2,19 +2,17 @@
 extern crate lazy_static;
 extern crate clap;
 
-use bytes::Bytes;
 use clap::Parser;
-use http_body_util::Full;
 use hyper::body::Incoming;
 use hyper::server::conn::http1;
 use hyper_util::rt::{tokio::TokioIo, tokio::TokioTimer};
 use josh_proxy::cli;
+use josh_proxy::hyper_integration::{JoshResponse, empty, erase, full};
 use josh_proxy::{FetchError, MetaConfig, RemoteAuth, RepoConfig, RepoUpdate, run_git_with_auth};
 use tokio::pin;
 use tokio::sync::broadcast;
 use tracing_opentelemetry::OpenTelemetrySpanExt;
 
-use futures::FutureExt;
 use hyper::service::service_fn;
 use hyper::{Request, Response, StatusCode};
 
@@ -319,7 +317,7 @@ async fn fetch_upstream(
 async fn static_paths(
     service: &JoshProxyService,
     path: &str,
-) -> josh::JoshResult