nodejs / nodejs/undici

Lifecycle hook support

Open
#491 7 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.7k
Forks
880
Avg merge
2d 16h
Merged PRs (30d)
68

Description

It would be helpful to support pre/post-processing of requests/responses. Some of the use-cases that I see are:

  • authentication
  • logging
  • custom container wrapping (e. g. by using Either)

Ideally this feature should come with a certain level of granularity, so that it is either possible to set lifecycle hooks both per Client or globally.

If this is accepted, I can work on implementation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Begin by clarifying the lifecycle-hook API and its per-Client versus global scope; completion should cover pre- and post-processing for requests and responses, including the authentication, logging, and container-wrapping use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.