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

(patch included) add ability to specify custom priority for HTTP::Config items [rt.cpan.org #59497]

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

まだ誰も着手していません。

評価

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

調査の方向性

HTTP::Config とその matching メソッドから始め、次に matching から返される項目のソートコードを調べます。リンクされている handlerPriority パッチとその priority フィールドのテストを確認します。完了の条件は、%matchspec の省略可能な priority が順序に影響し、省略された priority はデフォルトで 0 になり、既存の matching ルールが引き続き同順位を決定することです。

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

説明

Migrated from rt.cpan.org#59497 (status was 'new')

Requestors:

From [email protected] on 2010-07-18 03:24:26:

Currently there is no way to specify a custom order for items returned from the matching 
method in the HTTP::Config object.

I'm proposing the addition of a priority field in an item's %matchspec that is used as a sort key 
before using the sort key's defined by the built-in matching rules. the priority field will be 
treated as optional with item's not specifying it defaulting to a priority of 0.

I've written a patch to introduce this functionality and uploaded it to github here:
http://github.com/frett/libwww-perl/tree/handlerPriority

In the set of commits there is a test for the priority field, plus I updated the sorting code to 
correctly support the new priority field.
主要言語
Perl
スター
32
フォーク
63
平均マージ
5時間 14分
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

libwww-perl/HTTP-Message のほかの issue

libwww-perl/HTTP-Message の issue をすべて見る

似ている issue

Perl の issue をもっと見る

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

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