refresh_parser

Crates.iorefresh_parser
lib.rsrefresh_parser
version0.1.0
sourcesrc
created_at2023-03-23 21:04:52.927272
updated_at2023-03-23 21:04:52.927272
descriptionImlementation of `refresh` content parsing algorithm.
homepagehttps://gitlab.com/romko11l/refresh-parser
repositoryhttps://gitlab.com/romko11l/refresh-parser
max_upload_size
id818772
size13,906
(romko11l)

documentation

https://docs.rs/refresh_parser/

README

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

Commit count: 5

cargo fmt