-
Notifications
You must be signed in to change notification settings - Fork 500
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
feat: improve global API ergonomics #740
Conversation
ronag
commented
Apr 14, 2021
•
edited
edited
undici.request('http://foo:800', { path: '/bar' }) undici.request({ path: '/bar', origin: 'http://foo:800' }) undici.request('http://foo:800/bar')
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.
This needs tests but ok for the new API.
Codecov Report
@@ Coverage Diff @@
## main #740 +/- ##
===========================================
- Coverage 100.00% 99.94% -0.06%
===========================================
Files 24 24
Lines 1887 1899 +12
===========================================
+ Hits 1887 1898 +11
- Misses 0 1 +1
Continue to review full report at Codecov.
|
This shipped without tests. |
Missed pushing tests. Will do so when I’m by computer. |
* feat: improve global API ergonomics undici.request('http://foo:800', { path: '/bar' }) undici.request({ path: '/bar', origin: 'http://foo:800' }) undici.request('http://foo:800/bar') * fixup * fixup * fixup * fixup * fixup * fixup
* feat: improve global API ergonomics undici.request('http://foo:800', { path: '/bar' }) undici.request({ path: '/bar', origin: 'http://foo:800' }) undici.request('http://foo:800/bar') * fixup * fixup * fixup * fixup * fixup * fixup