Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormData, URLSearchParams and other HTTP classes #208

Closed
6 tasks done
g105b opened this issue May 2, 2023 · 2 comments · Fixed by #212
Closed
6 tasks done

FormData, URLSearchParams and other HTTP classes #208

g105b opened this issue May 2, 2023 · 2 comments · Fixed by #212
Assignees
Labels

Comments

@g105b
Copy link
Member

g105b commented May 2, 2023

These two classes are fundamental to basic HTTP usage, but specifically need to be implemented to allow PHP.Gt/Fetch to reach its next stable release.

PhpGt/Fetch#99 relies on this issue.

Class list to implement:

@g105b g105b added the feature label May 2, 2023
@g105b g105b self-assigned this May 2, 2023
@g105b g105b changed the title FormData and URLSearchParams implementation FormData, URLSearchParams and other HTTP classes May 3, 2023
@g105b
Copy link
Member Author

g105b commented May 30, 2023

Still need to:

  • test real file uploads
  • implement promise-based returns (that automatically resolve), like Blob::text() for example

g105b added a commit that referenced this issue Jul 1, 2023
@g105b
Copy link
Member Author

g105b commented Jul 1, 2023

The latest commit implements these classes, but the file upload functionality will be handled separately in #213

@g105b g105b closed this as completed Jul 1, 2023
g105b added a commit that referenced this issue Jul 1, 2023
* wip: add formdata class

* wip: add urlsearchparams class

* feature: implement URLSearchParams

* feature: tweak urlsearchparams

* wip: extract KeyValuePairStore

* wip: implement KeyValuePairStore for FormData

* wip: improve tests by expecting warning to be emitted

* wip: empty formdata options

* wip: test submitter is included in the form submission

* wip: test constructing with square brackets

* wip: fix static analysis error on DOMNodeList

* wip: implement form types

* wip: remove unused constants

* feature: implement promise-based functions
closes #208

* test: improve static tests
g105b added a commit that referenced this issue Jul 3, 2023
* wip: add formdata class

* wip: add urlsearchparams class

* feature: implement URLSearchParams

* feature: tweak urlsearchparams

* wip: extract KeyValuePairStore

* wip: implement KeyValuePairStore for FormData

* wip: improve tests by expecting warning to be emitted

* wip: empty formdata options

* wip: test submitter is included in the form submission

* wip: test constructing with square brackets

* wip: fix static analysis error on DOMNodeList

* wip: implement form types

* wip: remove unused constants

* feature: implement promise-based functions
closes #208

* test: improve static tests

* wip: uploading of files for #213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant