Something went wrong

Thank you for being patient! We're working hard on resolving the issue

Crate overview - Lona Docs Log in

tento-requests

tento-requests contains shared HTTP request helpers for provider SDKs that need Brotli handling, bearer auth, form posts, or GraphQL posts.

Public surface

  • post_graphql(url, authorization, body_bytes) sends a JSON GraphQL request and returns raw bytes.
  • post_form<T>(url, form) posts form data with the ntex client and parses JSON.
  • get_bearer<T>(url, token) and delete_bearer(url, token) handle bearer auth through ntex.
  • post_form_reqwest<T>, get_bearer_reqwest<T>, and delete_bearer_reqwest provide Send-safe reqwest variants.

Boundaries

This crate is transport glue. It should not know about provider endpoints, model types, OAuth refresh, or business semantics. Provider crates should wrap these functions in higher-level clients with typed request and response models.

Keep new helpers small and generic. If a helper needs one provider's header or payload shape, it probably belongs in that provider crate instead.