refresh_parser 0.1.0

Imlementation of `refresh` content parsing algorithm.
Documentation
  • Coverage
  • 12.5%
    1 out of 8 items documented0 out of 3 items with examples
  • Size
  • Source code size: 13.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 391.02 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • romko11l/refresh-parser
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • romko11l

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