Implement method function in WebhookMessage class
#55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
methodfunction in theWebhookMessageclass. 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
methodfunction enhances the flexibility of theWebhookMessageclass 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:
methodfunction in theWebhookMessageclass.methodfunction accepts a string parameter representing the HTTP method.methodproperty of theWebhookMessageclass.This change has been fully tested to ensure it works as expected and maintains the existing functionality of the
WebhookMessageclass. The corresponding unit tests have also been added to verify the correct behavior of the new function.