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

How get little value from http #6

Open
ar-mokhtari opened this issue Apr 13, 2022 · 2 comments
Open

How get little value from http #6

ar-mokhtari opened this issue Apr 13, 2022 · 2 comments

Comments

@ar-mokhtari
Copy link
Owner

ar-mokhtari commented Apr 13, 2022

<< HTTP GET request >>
If we don't want to get [little] value(s) (like id(s)) in "HEADERS",
which is better?

  • Params
  • Body
    and why?
@OmidHekayati
Copy link

If the little value has a simple structure, It is better to carry on URL params in the HTTP protocol to improve performance. If you carry on the body you need to indicate body content-type, ... just for a very simple data

@ar-mokhtari
Copy link
Owner Author

Well, is there any downside to using parameters in the URL?
In other words, if we want to carry something like the "ID" of an entity, (or something like that) and not use "HEADERS", and do not use "BODY" (for the reason you mention),
So do we have any choice other than PARAMS in the URL?

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

No branches or pull requests

2 participants