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

Initial working xwwwurlencoded body type #567

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

WrathOP
Copy link
Contributor

@WrathOP WrathOP commented Feb 11, 2025

PR Description

Implemented a basic POC for the xwwwurlencoded body content by adding an option to send it seperate from already implemented formdata. I think doing it this way is better as the discussed way of sending by default url encoded and sending multipart when a file is attached can lead to confusions and also if the user specificly wants to send a multipart. If we are adding a toggle for these 2 it will create a sort of divide in the type of the body type where you will have a different variable of sorts to know what kind of body this is. Anyways open to suggestions.

Related Issues

Screen.Recording.2025-02-11.at.8.11.46.PM.mov

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

I'll add tests in further development after the POC is approved

  • Yes
  • No, and this is why:I'll add tests in further development after the POC is approved

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux

@ashitaprasad
Copy link
Member

The second option provided in this comment will be more user friendly

@WrathOP
Copy link
Contributor Author

WrathOP commented Feb 21, 2025

Screen.Recording.2025-02-21.at.2.17.36.PM.mov

Here is the POC for this approach. Just need to figure out where to put this switch as it looks so out of place here.

@WrathOP WrathOP force-pushed the feat-urlencoded-body branch from 1cc5d50 to f15bb77 Compare February 21, 2025 08:53
@ashitaprasad
Copy link
Member

Screen.Recording.2025-02-21.at.2.17.36.PM.mov
Here is the POC for this approach. Just need to figure out where to put this switch as it looks so out of place here.

The POC looks good @WrathOP 👍

@ashitaprasad
Copy link
Member

You can cleanup the code and let me know when it is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants