MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / chrome_asset_headers

Function chrome_asset_headers

packages/server/src/api/routes.rs:3204–3212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3202}
3203
3204fn chrome_asset_headers() -> HeaderMap {
3205 let mut headers = HeaderMap::new();
3206 headers.insert(header::CONTENT_TYPE, "image/png".parse().unwrap());
3207 headers.insert(
3208 header::CACHE_CONTROL,
3209 "private, max-age=86400".parse().unwrap(),
3210 );
3211 headers
3212}
3213
3214async fn chrome_png(
3215 State(state): State<AppState>,

Callers 3

chrome_pngFunction · 0.85
chrome_button_pngFunction · 0.85
screen_mask_pngFunction · 0.85

Calls 2

insertMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected