reqwest

Installation
SKILL.md

reqwest

Um Client clonável, criado no boot. Não reqwest::get por request (sem pool, sem timeout). Runtime: tokio. Webhooks assinados: webhooks. Contratos: api-design. Testes: rust-unit-testing (fake ou wiremock se o crate já tiver).

Regras inegociáveis

  • Client no AppState (ou OnceLock no binário). Clone é barato (handle).
  • Timeouts: connect + timeout total no builder (e/ou por request). Sem hang eterno.
  • Retry só em rede / 429 / 5xx com backoff e teto. Não retry 4xx de negócio.
  • JSON: serde tipos. Status ≠ 2xx → AppError mapeado, não unwrap no json().await.
  • Sem logar body com token/PII (tracing).

Client

Installs
2
First Seen
Sep 8, 2026
reqwest — danieldxd/myapp-skills