7 Commits

Author SHA1 Message Date
fengmk2
e4f7069904
feat: use urllib@4.5.0 (#5371)
auto fallback to urllib@3 when require urllib4 error

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
	- Expanded CI workflow to include Node.js version 23 for testing.
- Enhanced `HttpClientNext` class with improved error handling and
configuration management.
- Added support for HTTP/2 functionality in the test suite, including
self-signed certificate handling.

- **Bug Fixes**
- Improved error handling for library imports based on Node.js versions.

- **Chores**
	- Updated dependency versions in `package.json`. 
- Modified HTTP client configuration to include a new `connect`
property.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-11-30 21:35:55 +08:00
fengmk2
46d3fb222b
feat: support allowH2 on urllib@4 (#5357)
https://github.com/eggjs/egg/issues/5347
2024-09-16 12:20:03 +08:00
killa
68cbd241e2
feat: impl httpclient.safeCurl (#5339)
Co-authored-by: fengmk2 <suqian.yf@antgroup.com>
2024-07-12 00:32:47 +08:00
fengmk2
b0292a8b7e
feat: allow to create httpClient from app (#5334) 2024-07-01 23:00:53 +08:00
fengmk2
ceded0b1c9
feat: allow to httpClient use HTTP2 first (#5332)
base on https://github.com/node-modules/urllib/pull/516


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced the ability to enable HTTP/2 support through the `allowH2`
property when using the next-generation HTTP client.
  
- **Bug Fixes**
- Enhanced clarity and accuracy of comments for HTTP client
configuration properties.

- **Improvements**
- Updated `urllib-next` dependency to version `^3.26.0` for better
performance and stability.
- Added tests to verify HTTP/2 functionality and custom HTTP client
behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-27 10:17:46 +08:00
fengmk2
610a39e7f4
👌 IMPROVE: Drop httpclient callback and thunk style (#5052)
And remove mz and mz-modules deps
2022-10-31 09:57:50 +08:00
fengmk2
2ffb37ab59
feat: Support urllib@3 (#5000)
closes https://github.com/eggjs/egg/issues/4847
2022-08-28 08:45:46 +08:00