Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Not easy to get the number of methods llhttp has

オープン
#872 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

@official-burak がすでに取り組んでいます。

2026年9月2日 から。

  • #880 @official-burak による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
54/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
c, typescript
領域
api, backend

調査の方向性

api.c:222 から始めて、llhttp_method_name がメソッド ID をどのように処理しているか、またサポート対象メソッドのテーブルがどのように定義されているかを追跡します。既存の API と、issue にリンクされている aiohttp の例を確認し、そのうえでどの列挙動作が適切かを判断します。呼び出し側が、追加された新しいメソッドも含め、ハードコードされた件数に頼ったり検索を中断したりせずに、サポート対象のすべてのメソッドを見つけられれば完了です。

索引モデルが issue の本文から書いたものです。

説明

In aiohttp, we need to create an array of all the method names that llhttp supports for caching purposes.

The problem is that llhttp_method_name abort()s on an out-of-range id (api.c:222), our old code therefore just had a hardcoded constant set to 46 and iterated over them. But, this means when llhttp added the QUERY method, our code didn't pick it up.

Would it be reasonable to add something to llhttp to trivially get this information? Either allowing llhttp_method_name to return NULL rather than abort(), or adding a constant that tells us how many methods are available.

Without something like that, I've had to add this awkward thing to extract the names directly:
https://github.com/aio-libs/aiohttp/pull/13174/changes#diff-061b5abe803b659aa544700e4065e1fbff6e83112315e345ea2d2e31ad1d6ca7R106-R117

主要言語
TypeScript
スター
2k
フォーク
236
平均マージ
5日 2時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodejs/llhttp のほかの issue

nodejs/llhttp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。