GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: new hooks by ronag · Pull Request #3878 · nodejs/undici

Conversation

@ronag

@ronag ronag commented Nov 24, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

metcoder95 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@ronag
ronag force-pushed the new-hooks2 branch 10 times, most recently from 9ab150a to f37d5f4 Compare November 25, 2024 07:54
@ronag
feat: new hooks
d44958d
@ronag
ronag force-pushed the new-hooks2 branch 3 times, most recently from 41c3b90 to c22b5c2 Compare November 25, 2024 08:46
@ronag
fixup
7e539df
@ronag
ronag force-pushed the new-hooks2 branch 2 times, most recently from f0cf2a8 to 9d2bf4f Compare November 25, 2024 08:58
@ronag
fixup
5ad6238
@ronag
ronag marked this pull request as ready for review November 25, 2024 09:01
@ronag ronag mentioned this pull request Nov 25, 2024
New Hooks API #3874
Closed
@ronag
ronag force-pushed the new-hooks2 branch from 9d2bf4f to 5ad6238 Compare November 25, 2024 09:05
@ronag
ronag requested review from ShogunPanda, mcollina and metcoder95 and removed request for mcollina November 25, 2024 09:05
@ronag

ronag commented Nov 25, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

I'm unsure about context in onRequestStart.

A. Is it necessary?
B. Should it live on the controller instead? i.e. the controller is the context. Just add a opaque property the user can use?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ronag
ronag force-pushed the new-hooks2 branch from eb84934 to b817efe Compare November 25, 2024 09:17
@ronag
fixup
ef233af
@ronag
ronag force-pushed the new-hooks2 branch from b817efe to ef233af Compare November 25, 2024 09:20
@mcollina

mcollina commented Nov 25, 2024

Copy link
Copy Markdown
Member

This looks good to me. Can you update the docs?

ronag reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ronag
fixup
a3094ac
@ronag
ronag force-pushed the new-hooks2 branch from 20b235c to a3094ac Compare November 25, 2024 09:49
mcollina
mcollina approved these changes Nov 25, 2024
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

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.

lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/mock-agent.js
onData: () => {},
onComplete: 'INVALID'
}), new InvalidArgumentError('invalid onComplete method'))
})

@mcollina mcollina Nov 25, 2024

Copy link
Copy Markdown
Member

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.

why was this removed?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ronag ronag Nov 25, 2024

Copy link
Copy Markdown
Member Author

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.

The redirect interceptor has some kind of assertion of the handler that does not exist anywhere else and is difficult to have compat with through the wrap/unwrap.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ronag
ronag force-pushed the new-hooks2 branch 2 times, most recently from ec77100 to 78dc2e6 Compare November 25, 2024 10:14
@ronag
fixup
f294bd2
@ronag
ronag force-pushed the new-hooks2 branch from 78dc2e6 to f294bd2 Compare November 25, 2024 10:27
@ronag ronag mentioned this pull request Nov 25, 2024
Normalize headers in interceptors #3860
Open
@ronag
ronag merged commit 67f3c96 into main Nov 25, 2024
@ShogunPanda
ShogunPanda deleted the new-hooks2 branch November 25, 2024 12:34
@artur-ma artur-ma mentioned this pull request Nov 26, 2024
V7 onBodySent hook #3884
Open
@github-actions github-actions Bot mentioned this pull request Dec 3, 2024
[Release] v7.1.0 #3922
Merged
This was referenced Dec 16, 2024
[Release] v7.1.1 #3952
Closed
[Release] v7.2.0 #3962
Merged
@tim1uphealth

tim1uphealth commented Mar 4, 2025

Copy link
Copy Markdown

Nit: could update the docs example, it's currently using the deprecated hooks:

undici/docs/docs/api/Dispatcher.md

Line 239 in 6bb527e

onConnect: () => {

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@metcoder95

metcoder95 commented Mar 4, 2025

Copy link
Copy Markdown
Member

Would you like to send a PR to update documentation?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Mar 12, 2025
[Release] v6.21.2 #4092
Closed
@github-actions github-actions Bot mentioned this pull request May 12, 2025
[Release] v6.21.3 #4211
Closed
@hexchain hexchain mentioned this pull request Oct 14, 2025
fix: correctly handle multi-value headers in fetch when rawHeaders contains array #4390
Open
3 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mcollina mcollina mcollina approved these changes
@metcoder95 metcoder95 Awaiting requested review from metcoder95
@ShogunPanda ShogunPanda Awaiting requested review from ShogunPanda

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@ronag @mcollina @tim1uphealth @metcoder95
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.