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

feat: improve global API ergonomics #740

Merged
merged 7 commits into from
Apr 14, 2021
Merged

feat: improve global API ergonomics #740

merged 7 commits into from
Apr 14, 2021

Conversation

ronag
Copy link
Member

@ronag ronag commented Apr 14, 2021

undici.request('http://foo:800', { path: '/bar' })
undici.request({ path: '/bar', origin: 'http://foo:800' })
undici.request('http://foo:800/bar')

undici.request('http://foo:800', { path: '/bar' })
undici.request({ path: '/bar', origin: 'http://foo:800' })
undici.request('http://foo:800/bar')
Copy link
Member

@mcollina mcollina left a 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-io
Copy link

codecov-io commented Apr 14, 2021

Codecov Report

Merging #740 (1bce8ae) into main (bb967e9) will decrease coverage by 0.05%.
The diff coverage is 95.23%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ
lib/core/util.js 98.66% <87.50%> (-1.34%) ⬇️
index.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb967e9...1bce8ae. Read the comment docs.

@ronag ronag merged commit e5f356a into main Apr 14, 2021
@mcollina mcollina deleted the ergonomic branch April 14, 2021 16:17
@mcollina
Copy link
Member

This shipped without tests.

@ronag
Copy link
Member Author

ronag commented Apr 14, 2021

Missed pushing tests. Will do so when I’m by computer.

ronag added a commit that referenced this pull request Apr 14, 2021
* 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
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants