Skip to content

feat: Add HTTPClient.patch() for sending PATCH requests #15

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

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

ianpartridge
Copy link
Contributor

PATCH is a commonly supported verb in RESTful APIs. Although it is
already possible to send a PATCH request via the HTTPClient.execute()
API this commit adds an explicit patch() API for consistency.

This gives us explicit APIs for GET, POST, PUT, PATCH and
DELETE.

`PATCH` is a commonly supported verb in RESTful APIs. Although it is
already possible to send a PATCH request via the `HTTPClient.execute()`
API this commit adds an explicit `patch()` API for consistency.

This gives us explicit APIs for `GET`, `POST`, `PUT`, `PATCH` and
`DELETE`.
Copy link
Collaborator

@artemredkin artemredkin left a comment

Choose a reason for hiding this comment

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

👍

@artemredkin artemredkin merged commit eda51ac into swift-server:master Apr 18, 2019
@ianpartridge ianpartridge deleted the patch branch April 18, 2019 20:57
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.

3 participants