mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
net: Log HTTP request headers.
This commit is contained in:
parent
d404a0cddd
commit
bf564cae5d
1 changed files with 7 additions and 0 deletions
|
@ -1195,6 +1195,13 @@ fn http_network_fetch(
|
|||
.as_ref()
|
||||
.map(|_| uuid::Uuid::new_v4().to_simple().to_string());
|
||||
|
||||
if log_enabled!(log::Level::Info) {
|
||||
info!("request for {} ({:?})", url, request.method);
|
||||
for header in request.headers.iter() {
|
||||
info!(" - {:?}", header);
|
||||
}
|
||||
}
|
||||
|
||||
// XHR uses the default destination; other kinds of fetches (which haven't been implemented yet)
|
||||
// do not. Once we support other kinds of fetches we'll need to be more fine grained here
|
||||
// since things like image fetches are classified differently by devtools
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue