-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update undiciRequestOption (#433)
> 使用 undici 内部的 undiciRequestOption 类型,同时限制 headers 为 `IncomingHttpHeaders` 。 * 统一从 UndiciRequest 提取参数 * 去除无效的 `keepalive` 属性,undici 内部使用 reset [ref](https://github.com/nodejs/undici/blob/main/docs/api/Dispatcher.md#dispatcherdispatchoptions-handler) * typo ---------------- > Use undici's internal undiciRequestOption type, while restricting headers type to `IncomingHttpHeaders`. * Uniformly fetch arguments type from UndiciRequest * Remove invalid `keepalive` attributes, undici internally uses reset [ref](https://github.com/nodejs/undici/blob/main/docs/api/Dispatcher.md#dispatcherdispatchoptions -handler) * typo
- Loading branch information
Showing
4 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters