Commit graph

1539 commits

Author SHA1 Message Date
Thomas Zahner
f2b1c29bd4 Rename chain to handle 2024-04-22 14:07:17 +02:00
Thomas Zahner
ddcca65e72 Rename Chainable to Handler 2024-04-22 11:03:26 +02:00
Thomas Zahner
e3a236b257 Adjust documentation 2024-04-22 11:03:26 +02:00
Matthias
9b4fd8d0fc Extend docs around clone_unwrap 2024-04-22 11:03:26 +02:00
Matthias
9ed97213a1 Add documentation to chain module
Also make `Chainable` and  `ChainResult` public to support external plugins/handlers.
2024-04-22 11:03:26 +02:00
Thomas Zahner
d5b9b84db6 Extract function and add SAFETY note 2024-04-22 11:03:26 +02:00
Thomas Zahner
a3184190b8 Small tweaks & extract method 2024-04-22 11:03:26 +02:00
Thomas Zahner
93afae54bb Create ClientRequestChain helper structure to combine multiple chains 2024-04-22 11:03:26 +02:00
Thomas Zahner
41e7f88da4 Add credentials to chain 2024-04-22 11:03:26 +02:00
Thomas Zahner
3ec3a8228c Make checker part of the request chain 2024-04-22 11:03:26 +02:00
Matthias Endler
0f012f3035 Use async_trait to fix issues with Chain type inference 2024-04-22 11:03:26 +02:00
Thomas Zahner
d92d3ba733 Extract checking functionality & make chain async 2024-04-22 11:03:26 +02:00
Thomas Zahner
17e2911700 Move Arc and Mutex inside of Chain struct 2024-04-22 11:03:26 +02:00
Thomas Zahner
377aceed60 Apply clippy suggestions 2024-04-22 11:03:26 +02:00
Thomas Zahner
c41cd5d6b9 Apply suggestions 2024-04-22 11:03:26 +02:00
Thomas Zahner
1fe6f2f1be Small improvements 2024-04-22 11:03:26 +02:00
Thomas Zahner
a90a35c329 Add doc comment 2024-04-22 11:03:26 +02:00
Thomas Zahner
402482ca01 Update RequestChain & add chain to client 2024-04-22 11:03:26 +02:00
Thomas Zahner
667105e13e Move chain into check_website function 2024-04-22 11:03:26 +02:00
Thomas Zahner
db1dc19c0a Implement Chainable directly for BasicAuthCredentials 2024-04-22 11:03:26 +02:00
Thomas Zahner
8da4592e2a Introduce early exit in chain 2024-04-22 11:03:26 +02:00
Thomas Zahner
7783cdfe46 Pass down request_chain instead of credentials & add test 2024-04-22 11:03:26 +02:00
Thomas Zahner
237f690f18 Add quirks to request chain 2024-04-22 11:03:26 +02:00
Thomas Zahner
4d8a21c2dd Test chain 2024-04-22 11:03:26 +02:00
Thomas Zahner
0c4bea8074 Create request chain with basic authentication 2024-04-22 11:03:26 +02:00
Orhun Parmaksız
382b53c5d0
docs: add instructions for installing on Alpine Linux (#1406) 2024-04-18 17:42:23 +02:00
Matthew Timms
eb12064fab
feat: add support for pre-commit (#1396) 2024-04-15 18:18:52 +02:00
Matthew Timms
eff77d6342
fix(docker): match Debian version in base images (#1395)
fixed cargo complaints in docker when examples/ bench/ are missing but including them
2024-04-03 14:44:17 +02:00
Matthias Endler
d5ddf66b00
reqwest 0.12 released 2024-03-23 00:28:57 +01:00
Denis
0d5601ce9e
fix: Treat sites with 403 status codes as broken links (#1377) 2024-03-19 12:55:21 +01:00
Orhun Parmaksız
13f4339710
fix(tests): update the asserts in expired SSL certificate test (#1373) 2024-02-09 20:35:47 +01:00
Matthias Endler
90ed0e70b7
Bump to version; move to workspace versioning (#1372) 2024-02-05 16:50:32 +01:00
Hugo McNally
9ff4a838ce
Fixed fragment generation for headings with inline code (#1370)
* Added code headings to fragment cli test

* Fixed fragment generation for headings with inline code
2024-02-05 01:07:56 +01:00
Nai Hao Cheng
a7c36b5255
Set URI to https for ErrorKind::InsecureURL (#1369) 2024-02-01 12:03:30 +01:00
Norbert Kamiński
2a95944ef5
status.rs: Make json output more verbose (#1367)
* status.rs: Make json output more verbose

Currently if the status response has no status code, json output
contains only a text field which gives no real information about
the cause of the problem. The patch adds field with more detailed
information when the status response contains some details.

Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>

* cli.rs: Test parsing of error details in JSON format

Some network error such as SSL has no status code but it can be
identified by error status details. This patch adds a test case to
verify if the error details are parsed properly in the json format.

Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>

---------

Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2024-01-30 23:58:18 +01:00
dependabot[bot]
54e63861b8
Bump the dependencies group with 2 updates (#1365)
Bumps the dependencies group with 2 updates: [peter-evans/dockerhub-description](https://github.com/peter-evans/dockerhub-description) and [peter-evans/create-issue-from-file](https://github.com/peter-evans/create-issue-from-file).


Updates `peter-evans/dockerhub-description` from 3 to 4
- [Release notes](https://github.com/peter-evans/dockerhub-description/releases)
- [Commits](https://github.com/peter-evans/dockerhub-description/compare/v3...v4)

Updates `peter-evans/create-issue-from-file` from 4 to 5
- [Release notes](https://github.com/peter-evans/create-issue-from-file/releases)
- [Commits](https://github.com/peter-evans/create-issue-from-file/compare/v4...v5)

---
updated-dependencies:
- dependency-name: peter-evans/dockerhub-description
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
- dependency-name: peter-evans/create-issue-from-file
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-30 00:30:28 +01:00
Orhun Parmaksız
b882a14161
fix(tests): update the expected output in cli tests (#1362) 2024-01-28 02:52:45 +01:00
Matthias
6306883cc2 Bump version to 0.14.2 2024-01-26 15:04:09 +01:00
Matthias Endler
ad3ba31184
Merge missing include_mail flag into config (#1357) 2024-01-24 13:39:43 +01:00
Matthias Endler
d481c061b9
Always output valid JSON with --format=json (#1356)
Previously, when using JSON as the output format, any supplementary warnings included in the output would invalidate the JSON structure. This pull request addresses this issue by redirecting any extra warnings to `stderr`. This change guarantees that the output remains valid JSON even when additional warnings are present.

Fixes https://github.com/lycheeverse/lychee/issues/1355
2024-01-24 13:12:55 +01:00
Matthias Endler
3558031527
Try to improve build times (#1350)
Based on https://corrode.dev/blog/tips-for-faster-rust-compile-times/
2024-01-21 01:55:46 +01:00
Dereck Tu
9591f0d79a
chore: Move back to creates.io version of criterion (#1348) 2024-01-19 09:24:04 +01:00
mre
a7c11c9c22 chore(docs): update TOC 2024-01-09 23:25:16 +00:00
Matthias
a981472eda Bump version to 0.14.1 2024-01-10 00:24:57 +01:00
Matthias
f933656161 Add integration test for accept (int and string) 2024-01-10 00:10:22 +01:00
Techassi
1ab05efdcb
feat: Expand serde deserialize impl (#1345) 2024-01-10 00:07:39 +01:00
Techassi
0d0be52844
fix: Add accept option to merged config (#1344) 2024-01-09 20:55:39 +01:00
Matthias Endler
8aa9081f1a
Ignore http updates until reqwest is updated 2024-01-08 14:06:29 +01:00
Matthias Endler
2b30e001a5
Mention anchor/fragment support in docs 2024-01-07 00:22:12 +01:00
Levi Zim
704126eab4
fix(test_cookie_jar): use google.com/ncr (#1336)
google.com might redirect to other domains, causing cookie_jar test to fail.
2024-01-06 12:31:23 +01:00