Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#46 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
perl
Ambito
backend

Direzione di ricerca

Inizia con HTTP::Config e il relativo metodo matching, quindi esamina il codice di ordinamento degli elementi restituiti da matching. Esamina la patch handlerPriority collegata e il relativo test del campo priority; il lavoro è completo quando le priorità opzionali di %matchspec influiscono sull'ordinamento, mentre le priorità non specificate hanno come valore predefinito 0 e le regole di matching esistenti continuano a determinare i pareggi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Perl
Stelle
32
Fork
63
Merge medio
5h 14m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di libwww-perl/HTTP-Message

Tutte le issue di libwww-perl/HTTP-Message

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.