libwww-perl / libwww-perl/HTTP-Message
(patch included) add ability to specify custom priority for HTTP::Config items [rt.cpan.org #59497]
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 32
- Forks
- 63
- Avg merge
- 5h 14m
- Merged PRs (30d)
- 1
Description
Migrated from rt.cpan.org#59497 (status was 'new')
Requestors:
- daniel.frett@ccci.org
From daniel.frett@ccci.org 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with HTTP::Config and its matching method, then inspect the sorting code for items returned from matching. Review the linked handlerPriority patch and its priority-field test; done means optional %matchspec priorities affect ordering while unspecified priorities default to 0 and existing matching rules still determine ties.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100