Skip to content

Expose RequestStrategy as a param to post_form function  #386

@azhur

Description

@azhur

Is your feature request related to a problem? Please describe.

RequestStrategy is currently stored in the client which kinda makes it global so if you need to have a dedicated strategy per request you need to modify it in the client scope before every request. In the multithreaded environment, this might be a problem unless you clone the client per request which is not efficient in my understanding.
Exposing RequestStrategy to post_form allows user to specify it per request. For example user wants to create invoice in Stripe and use RequestStrategy.Idempotent(key) where the key is some invoice_id stored in user's application.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions