MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / ipxe_menu_view

Function ipxe_menu_view

opensuse-proxy-cache/src/main.rs:1503–1522  ·  view source on GitHub ↗
(
    _headers: HeaderMap,
    extract::State(state): extract::State<Arc<AppState>>,
)

Source from the content-addressed store, hash-verified

1501
1502#[axum::debug_handler]
1503async fn ipxe_menu_view(
1504 _headers: HeaderMap,
1505 extract::State(state): extract::State<Arc<AppState>>,
1506) -> Response {
1507 let menu = IpxeMenuTemplate {
1508 mirror_uri: state.boot_origin.as_str(),
1509 }
1510 .render()
1511 .unwrap();
1512
1513 // error!("ipxe request_headers -> {:?}", headers);
1514 // ipxe request_headers -> {"connection": "keep-alive", "user-agent": "iPXE/1.21.1+git20231006.ff0f8604", "host": "172.24.11.130:8080"}
1515
1516 // https://ipxe.org/cfg
1517 // https://ipxe.org/cmd/
1518
1519 // set mirror-uri ${cwduri}
1520
1521 menu.into_response()
1522}
1523
1524async fn robots_view() -> Html<&'static str> {
1525 Html(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected