pillarjs / pillarjs/multiparty

Add something like part.get() or part.header()

Open
#153 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first contribution ideas
Dominant language
JavaScript
Stars
1.3k
Forks
164
Avg merge
4h 16m
Merged PRs (30d)
4

Description

It would be good to have something like part.get(name: string) (express-style) or part.header(name: string) (more logical, IMO) to be able to get HTTP headers using case-insensitive search. Currently, the only way to get the headers is from the part.headers array which strictly uses lower-case strings, i.e., not necessarily what came from the client.

Contributor guide

No contributing guide indexed for this repository

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

Start by tracing how the part.headers array is populated and exposed, then compare the referenced Express implementation with the current API. Add a case-insensitive header lookup on each part, and verify that callers can retrieve headers regardless of the capitalization supplied by the client.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.