Upgrade to Pro — share decks privately, control downloads, hide ads and more …

web over packaging

Jxck
June 13, 2018

web over packaging

Web over Packaging
at #chromejp 2018/6/13

Jxck

June 13, 2018
Tweet

More Decks by Jxck

Other Decks in Technology

Transcript

  1. webbundle = [ ; in UTF-8. magic: h'F0 9F 8C

    90 F0 9F 93 A6', section-offsets: bytes .cbor {* ($section-name .within tstr) => [ offset: uint, length: uint] }, sections: [* $section ], length: bytes .size 8, ; Big-endian number of bytes in the bundle. ] $section-name /= "index" / "manifest" / "critical" / "responses" $section /= index / manifest / critical / responses responses = [*response]
  2. Index for Response of index.html offset 100 length 200 Index

    for Response of script.js offset 300 length 200 ... ... HTTP Header + index.html body HTTP Header + script.js body ... 100 300