HTML 4 |
HTML + image 5 |
non-SXG
7 |
85 |
89 |
90 |
--------------------------------------------------------------------------------
/distributor/instantpage.js.patch:
--------------------------------------------------------------------------------
1 | 234a235,238
2 | > if (typeof instantUrlModifier === 'function') {
3 | > url = instantUrlModifier(url);
4 | > }
5 | >
6 | 241a246,248
7 | > if (typeof instantLinkModifier === 'function') {
8 | > instantLinkModifier(prefetcher);
9 | > }
10 |
--------------------------------------------------------------------------------
/distributor/src/parse_sxg.rs:
--------------------------------------------------------------------------------
1 | use anyhow::{anyhow, Result};
2 | use futures::stream::{StreamExt, TryStreamExt};
3 | use hyper::Body;
4 | use nom::{
5 | bytes::streaming::{tag, take},
6 | combinator::{map, map_res, verify},
7 | multi::length_data,
8 | number::streaming::{be_u16, be_u24},
9 | sequence::{pair, preceded},
10 | IResult,
11 | };
12 |
13 | #[derive(Debug)]
14 | pub struct Parts {
15 | pub fallback_url: String,
16 | pub signature: Vec