HTTP client: Support for handling cookies
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
Piste de recherche
Start by reviewing RFC 6265 and the ReactPHP HTTP client implementation to resolve the proposed cookie-jar design and storage boundaries. Define how enabling, disabling, manual changes, expiration, domain matching, and serialization should work; done means the agreed behavior is implemented and covered by tests.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
While I was trying to port some blocking libcURL code to ReactPHP I found there is no support for handling cookies when using the HTTP client. Inspired by other clients (especially cURL) I propose that the following features should be added:
- compliance with HTTP State Management Mechanism (expiration, send the cookie only to the corresponding domain, etc.)
- cookie support can be enabled/disabled
- cookies can be added/removed manually
- serialization/deserialization to/from a format like Netscape Cookie Jar (ideally this should be decoupled so other formats could be easily added)
As suggested by @WyriHaximus, storing the cookie jar could be done with react/cache which I find totally ok. Saving and loading to/from files could be implemented by the user or we could build something on top of ArrayCache.
After we settle the details of this, I would be happy to implement it :D
- Langage dominant
- PHP
- Étoiles
- 781
- Forks
- 166
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de reactphp/http
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 76/100
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
-
Roadmap to reactphp/http v3 Ouvertemaintenance
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
-
new feature
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
-
help wanted new feature
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Toutes les issues de reactphp/http
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
phingofficial/phing#2025 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
silverstripe/developer-docs#911 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100