wvb 0.2.0-next.68e19d2

Offline-first web resources delivery system for webview mounted frameworks/platforms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub(crate) trait HttpHeadersTracingInfo {
  fn tracing_info(&self) -> String;
}

impl HttpHeadersTracingInfo for http::HeaderMap {
  fn tracing_info(&self) -> String {
    self
      .iter()
      .map(|(k, v)| format!("{}={}", k, String::from_utf8_lossy(v.as_bytes())))
      .collect::<Vec<_>>()
      .join(", ")
  }
}