libwww-perl / libwww-perl/HTTP-Cookies

suggest from_string() method

Open
#50 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
4
Forks
19
PR merge metrics
No merged PRs in 30d

Description

As an idea for a feature, it'd be good to have a from_string() method as an inverse of as_string(). If I'm not mistaken it would be more or less the guts of load(), sans header. I struck this wanting a bit of stringify / unstringify to hold cookies in a database record rather than a file.

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 reading the existing as_string() and load() methods to understand the proposed inverse and how the file header is handled. Done means a from_string() method can restore cookie-jar data from a string without requiring a file header, including the database-cookie use case described here.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.