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

Implement method function in WebhookMessage class #55

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MammutAlex
Copy link

This pull request introduces a new method function in the WebhookMessage class. This function allows setting the HTTP method for the webhook request. The HTTP method can be any valid method such as 'GET', 'POST', 'PUT', 'DELETE', etc.

The method function enhances the flexibility of the WebhookMessage class by allowing the user to specify the HTTP method used when sending the webhook request. This is particularly useful when interacting with APIs that require specific HTTP methods for certain endpoints.

Here is a brief overview of the changes:

  • Added a new method function in the WebhookMessage class.
  • The method function accepts a string parameter representing the HTTP method.
  • The HTTP method is stored in the method property of the WebhookMessage class.

This change has been fully tested to ensure it works as expected and maintains the existing functionality of the WebhookMessage class. The corresponding unit tests have also been added to verify the correct behavior of the new function.

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.

1 participant