Skip to content

Commit e701e7e

Browse files
committed
feat: client::http::Options::verbose to see more debug output.
This means different things depending on the backend, and for `curl` it means a lot of debug-output on stderr.
1 parent 603f341 commit e701e7e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

git-transport/src/client/blocking_io/http/curl/remote.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ pub fn new() -> (
140140
proxy_auth_method,
141141
user_agent,
142142
proxy_authenticate,
143+
verbose,
143144
backend: _,
144145
},
145146
} in req_recv
@@ -152,6 +153,7 @@ pub fn new() -> (
152153
for header in extra_headers {
153154
headers.append(&header)?;
154155
}
156+
handle.verbose(verbose)?;
155157

156158
let mut proxy_auth_action = None;
157159
if let Some(proxy) = proxy {

git-transport/src/client/blocking_io/http/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ pub struct Options {
123123
/// If `None`, this typically defaults to 2 minutes to 5 minutes.
124124
/// Refers to `gitoxide.http.connectTimeout`.
125125
pub connect_timeout: Option<std::time::Duration>,
126+
/// If enabled, emit additional information about connections and possibly the data received or written.
127+
pub verbose: bool,
126128
/// Backend specific options, if available.
127129
pub backend: Option<Arc<Mutex<dyn Any + Send + Sync + 'static>>>,
128130
}

0 commit comments

Comments
 (0)