-
Notifications
You must be signed in to change notification settings - Fork 74
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
Feature storm httpapi params #1856
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1856 +/- ##
==========================================
+ Coverage 96.30% 96.36% +0.06%
==========================================
Files 141 141
Lines 27628 27628
==========================================
+ Hits 26606 26623 +17
+ Misses 1022 1005 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -32,24 +32,14 @@ async def _httpEasyGet(self, url, headers=None, ssl_verify=True): | |||
|
|||
ssl_verify (bool): Perform SSL/TLS verification. Defaults to true. | |||
|
|||
params (dict): Optional parameters which may be passed to the request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're passing the params directly through to aiohttp, technically this can be multiple types and I've got tests for each of them; if only to 1) avoid isinstance code and 2) support recurring key options in params
params
argument to$lib.inet.http
functions to send arbitrary request parameters.$lib.inet.http...
tests to use that instead of making lots of nodes.