Skip to content
Discussion options

You must be logged in to vote

Hey, sorry for missing this question. I think this is a great use case for extensions.

Let me try to answer your questions:

  1. Where in the request lifecycle are extensions allowed to be invoked? I'd need to be able to sign an entire request and add four HTTP headers to it (docs) just prior to the request being sent.

Technically, anywhere. The Python SDK support I plan to add will be based on lifecycle hooks, and adding a hook that alters the HTTP content of an outgoing request is a good fit. This even seems like a reasonable fit for a standard Auth handler for an httpx client, if you're using Python. Looks like there are even existing libraries for it: https://github.com/Colin-b/httpx_a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@LucaButBoring
Comment options

@mikeas1
Comment options

mikeas1 Jul 15, 2025
Collaborator

Answer selected by LucaButBoring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants