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

Add support for HTTP Delete method #13

Closed
wants to merge 1 commit into from

Conversation

jiangliu
Copy link
Contributor

Reason for This PR

#12

Description of Changes

Add support for Method::Delete, which is needed for device hot-removal.
Also fix a clippy warning.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

PR Checklist

[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any newly added unsafe code is properly documented.
  • Any user-facing changes are mentioned in CHANGELOG.md.

Add support for Method::Delete, which is needed for device hot-removal.
Also fix a clippy warning.

Fixes: firecracker-microvm#12

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
@@ -150,6 +150,8 @@ pub enum Method {
Put,
/// PATCH Method.
Patch,
/// Delete Method.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: /// DELETE Method.

@imeoer
Copy link

imeoer commented Oct 28, 2020

+1, Also we need to add these commonly used methods: HEAD, POST.

@jiangliu
Copy link
Contributor Author

closed in preferred of #17

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 this pull request may close these issues.

None yet

3 participants