Skip to content

Update ext.requests to patch send instead of request #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Minitour
Copy link

Patching the send function instead of request (this achieves the same affect)

Description of changes:

The requests library uses the send function to perform the HTTP call.
The call stack is as follows:
request -> send
In other words, the request function calls the send function.

Some third party libraries use the send function directly, where they prepare the request (using some request builder function) and then send it with send.

A notable example of this is OpenSearch python client

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Patching the `send` function instead of `request` (this achieves the same affect)
@Minitour Minitour requested a review from a team as a code owner April 16, 2025 16:40
@Minitour Minitour changed the title Update patch.py for requests Update ext.requests to patch send instead of request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant