-
Notifications
You must be signed in to change notification settings - Fork 27.2k
HttpClient.delete() cannot handle a body in its request #19438
Copy link
Copy link
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientfreq2: mediumopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).An issue that is suitable for a community contributor (based on its complexity/scope).state: confirmedtype: bug/fix
Milestone
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientfreq2: mediumopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).An issue that is suitable for a community contributor (based on its complexity/scope).state: confirmedtype: bug/fix
I'm submitting a...
Current behavior
The
HttpClient.delete()does not accept a body parameter.Expected behavior
The
HttpClient.delete()needs to accept a body or clear guidance on why it has this limitation and how to get around it. It was possible with the originalHttp.delete()via theRequestOptionsArgsWhat is the motivation / use case for changing the behavior?
I work with APIs that have always handled the body of DELETE requests and this is an unexpected change in REST api interaction.
Environment