Skip to content
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

aiohttp.request() got an unexpected keyword argument 'ssl' #10077

Open
1 task done
CodingMoeButa opened this issue Dec 1, 2024 · 1 comment · May be fixed by #10100
Open
1 task done

aiohttp.request() got an unexpected keyword argument 'ssl' #10077

CodingMoeButa opened this issue Dec 1, 2024 · 1 comment · May be fixed by #10100

Comments

@CodingMoeButa
Copy link

Is your feature request related to a problem?

I want to use aiohttp.request() function with a ssl=False argument.

Describe the solution you'd like

Add ssl argument for aiohttp.request() function.

Describe alternatives you've considered

No.

Related component

Client

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@Dreamsorcerer
Copy link
Member

If someone wants to create a PR to switch that function to using kwargs, same as the client method (

aiohttp/aiohttp/client.py

Lines 398 to 407 in 1fa237f

if sys.version_info >= (3, 11) and TYPE_CHECKING:
def request(
self,
method: str,
url: StrOrURL,
**kwargs: Unpack[_RequestOptions],
) -> "_RequestContextManager": ...
else:
), then that'll fix these missing parameters in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants