mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Update to ehttp 0.4 (#3834)
This commit is contained in:
@@ -60,7 +60,7 @@ puffin_http = { version = "0.15", optional = true }
|
||||
|
||||
|
||||
# feature "http":
|
||||
ehttp = { version = "0.3.1", optional = true }
|
||||
ehttp = { version = "0.4", optional = true }
|
||||
image = { version = "0.24", optional = true, default-features = false, features = [
|
||||
"jpeg",
|
||||
"png",
|
||||
|
||||
@@ -182,9 +182,9 @@ fn ui_resource(ui: &mut egui::Ui, resource: &Resource) {
|
||||
egui::Grid::new("response_headers")
|
||||
.spacing(egui::vec2(ui.spacing().item_spacing.x * 2.0, 0.0))
|
||||
.show(ui, |ui| {
|
||||
for header in &response.headers {
|
||||
ui.label(header.0);
|
||||
ui.label(header.1);
|
||||
for (k, v) in &response.headers {
|
||||
ui.label(k);
|
||||
ui.label(v);
|
||||
ui.end_row();
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user