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

Allow omission of the HTTP method #2

Closed
ducaale opened this issue Dec 4, 2020 · 0 comments · Fixed by #5
Closed

Allow omission of the HTTP method #2

ducaale opened this issue Dec 4, 2020 · 0 comments · Fixed by #5

Comments

@ducaale
Copy link
Owner

ducaale commented Dec 4, 2020

HTTPie allows omitting HTTP methods in which case it will default to GET if the body is empty or to POST otherwise.

http :8080/users          # will be translated to `http get :8080/users`
http :8080/users name=ali # will be translated to `http post :8080/users name=ali`

This should be possible when clap-rs/clap#2122 gets addressed.

@ducaale ducaale changed the title Allow omission of http method Allow omission of the HTTP method Dec 4, 2020
@ducaale ducaale closed this as completed in #5 Jan 5, 2021
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

Successfully merging a pull request may close this issue.

1 participant