#html-content #refresh #browser #algorithm #parser #url #org

refresh_parser

Imlementation of refresh content parsing algorithm

1 unstable release

0.1.0 Mar 23, 2023

#10 in #refresh

BSD-3-Clause/MIT

14KB
279 lines

refresh_parser

Modern browsers have several redirect mechanisms. One of them is refresh. You can use it in:

  • HTTP header
Refresh: 5; url=https://gitlab.com/
  • HTML content
<meta http-equiv="Refresh" content="5; URL=https://gitlab.com/" />

Browsers allow different ways to fill refresh content. Therefore, the parsing algorithms for it are rather complicated:

This repository presents the implementation of this algorithm on rust.


Run tests:

cargo test

Run fuzzing (https://rust-fuzz.github.io/book/introduction.html):

cargo fuzz run fuzz_refresh_parser

Dependencies

~235–690KB
~16K SLoC