mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-04 21:50:26 +00:00
Adds support for accept ranges discussed in #1157. This allows the user to specify custom HTTP status codes accepted during checking and thus will report as valid (not broken). The accept option only supports specifying status codes as a comma-separated list. With this PR, the option will accept a list of status code ranges formatted like this: ```toml accept = ["100..=103", "200..=299", "403"] ``` These combinations will be supported: `..<end>`, ` ..=<end>`, `<start>..<end>` and `<start>..=<end>`. The behavior is copied from the Rust Range like concepts: ``` ..<end>, includes 0 to <end> (exclusive) ..=<end>, includes 0 to <end> (inclusive) <start>..<end>, includes <start> to <end> (exclusive) <start>..=<end>, includes <start> to <end> (inclusive) ``` - Foundation and enhancements for accept ranges, including support for comma-separated strings and integration into the CLI. - Implementations and updates for AcceptSelector, including Default, Display, and serde defaults. - Address and fix various errors: clippy, cargo fmt, and tests. - Add more tests, address edge cases, and enhance error messaging, especially for TOML config parsing. - Update dependencies. |
||
|---|---|---|
| .. | ||
| bench | ||
| cache | ||
| cache_accept_custom_status_codes | ||
| configs | ||
| dump_inputs | ||
| exclude-path | ||
| fragments | ||
| ignore | ||
| offline | ||
| INTERNET_ARCHIVE.md | ||
| TEST.html | ||
| TEST.md | ||
| TEST_ALL_PRIVATE.md | ||
| TEST_CODE_BLOCKS.md | ||
| TEST_DATA_URIS.html | ||
| TEST_DUMP_EXCLUDE.txt | ||
| TEST_EMAIL.md | ||
| TEST_EMAIL_QUERY_PARAMS.html | ||
| TEST_EMAIL_QUERY_PARAMS.md | ||
| TEST_EXAMPLE_DOMAINS.md | ||
| TEST_GITHUB.md | ||
| TEST_GITHUB_404.md | ||
| TEST_HTML5.html | ||
| TEST_HTML5_CUSTOM_ELEMENTS.html | ||
| TEST_HTML5_LOWERCASE_DOCTYPE.html | ||
| TEST_HTML5_MALFORMED_LINKS.html | ||
| TEST_HTML5_MINIFIED.html | ||
| TEST_HTTP.html | ||
| TEST_REPETITION_1.txt | ||
| TEST_REPETITION_2.txt | ||
| TEST_SCHEMES.md | ||
| TEST_SCHEMES.txt | ||
| TEST_VERBATIM.html | ||