Add an option to pass your own requests class into the client
kuhanaklobasa opened this issue · 1 comments
kuhanaklobasa commented
Is your feature request related to a problem? Please describe.
Yes, I wanted to customise timeouts but I didn't have a way so I wrote spaghetti code :=)
If your feature is related to implementing a new Roblox API, provide information here.
API URL: none
Documented: none
Describe the solution you'd like
Add an option to pass your own requests class into the client
Describe alternatives you've considered
None
Additional context
session = httpx.Session(timeout=10)
requests = Requests(
url_generator=None,
session=session
)
client = Client(requests=requests)
jmkd3v commented
going to do this for v3 along with aiohttp and pydantic