Added request_options parameter to various classes and functions for canceling requests#1190
Added request_options parameter to various classes and functions for canceling requests#1190emojiiii wants to merge 2 commits intohuggingface:mainfrom
Conversation
|
This can be very useful! Thanks! Regarding the API, since this is pretty non-standard for the python library, perhaps a better approach would be to allow the user to pass their own In fact, I think this would be better at the |
You're right, I need some time to revisit it. |
|
I added a custom fetch method, but after some thought, I realized that I still need to pass request_options as I do currently. Otherwise, every time an AbortController is used, I would need to reset env.customFetch, and there would be no way to cancel only specific fetches. |
Added request_options parameter to various classes and functions for canceling requests
closed #1182