{"id":19627703,"url":"https://github.com/maoertel/diqwest","last_synced_at":"2025-04-24T00:06:27.097Z","repository":{"id":39643873,"uuid":"416801231","full_name":"maoertel/diqwest","owner":"maoertel","description":"Crate to extend `reqwest` to be able to send with digest auth flow.","archived":false,"fork":false,"pushed_at":"2024-06-20T17:33:46.000Z","size":56,"stargazers_count":18,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T00:05:59.204Z","etag":null,"topics":["digest-authentication","reqwest","reqwest-middleware","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/diqwest","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maoertel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-13T15:35:51.000Z","updated_at":"2024-12-26T02:06:19.000Z","dependencies_parsed_at":"2024-04-19T14:47:50.752Z","dependency_job_id":"3af14121-21a9-44a5-a2cc-ad01078cd5d7","html_url":"https://github.com/maoertel/diqwest","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":0.09523809523809523,"last_synced_commit":"2015f3fb408dcdd5717ed53bd8b288038dc0df21"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fdiqwest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fdiqwest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fdiqwest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fdiqwest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maoertel","download_url":"https://codeload.github.com/maoertel/diqwest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535103,"owners_count":21446508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["digest-authentication","reqwest","reqwest-middleware","rust"],"created_at":"2024-11-11T11:52:38.095Z","updated_at":"2025-04-24T00:06:27.069Z","avatar_url":"https://github.com/maoertel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diqwest\n\nThis crate extends `reqwest` to be able to send requests with digest auth flow.\n\nWhen you send a request with digest auth flow this first request will be executed. In case the response is a `401` the `www-authenticate` header is parsed and the answer is calculated. The initial request is executed again with additional `Authorization` header. The response will be returned from `send_with_digest_auth()`.\n\nIn case the first response is not a `401` this first response is returned from `send_with_digest_auth()` without any manipulation. In case the first response is a `401` but the `www-authenticate` header is missing the first reponse is returned as well.\n\n`diqwest` is a lean crate and has nearly no dependencies:\n- `reqwest`, for sure, as `diqwest` is an extension to it. Without any enabled features and no default features.\n- `digest_auth` is used to calculate the answer. Without any enabled feature and no default features.\n- `url` is used to validate urls on type level. Without any enabled feature and no default features. \n\nThat's it. No other dependencies are used. Not even `thiserror` is used to not force it on you.\n\n## Examples\n\n### Async (default)\n```rust\nuse diqwest::WithDigestAuth;\nuse reqwest::{Client, Response};\n\n// Call `.send_with_digest_auth()` on `RequestBuilder` like `send()`\nlet response: Response = Client::new()\n  .get(\"url\")\n  .send_with_digest_auth(\"username\", \"password\")\n  .await?;\n```\n\n### Blocking (feature flag `blocking` has to be enabled in `Cargo.toml`)\n\n```rust\nuse diqwest::blocking::WithDigestAuth;\nuse reqwest::blocking::{Client, Response};\n\n// Call `.send_with_digest_auth()` on `RequestBuilder` like `send()`\nlet response: Response = Client::new()\n  .get(\"url\")\n  .send_with_digest_auth(\"username\", \"password\")?;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaoertel%2Fdiqwest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaoertel%2Fdiqwest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaoertel%2Fdiqwest/lists"}