This method is used as a callback for mutating the `Request` object after it has been constructed. This is useful for cases where you want to add certain headers based off of the request properties, e.g. `url`, `method` etc.
(
self,
request: httpx.Request, # noqa: ARG002
)
| 944 | return options |
| 945 | |
| 946 | def _prepare_request( |
| 947 | self, |
| 948 | request: httpx.Request, # noqa: ARG002 |
| 949 | ) -> None: |
| 950 | """This method is used as a callback for mutating the `Request` object |
| 951 | after it has been constructed. |
| 952 | This is useful for cases where you want to add certain headers based off of |
| 953 | the request properties, e.g. `url`, `method` etc. |
| 954 | """ |
| 955 | return None |
| 956 | |
| 957 | def _send_request( |
| 958 | self, |