Skip to content

HttpClient.delete() cannot handle a body in its request #19438

@JDillon522

Description

@JDillon522

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ x ] Feature request
[ x ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

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 original Http.delete() via the RequestOptionsArgs

What 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


Angular version: 4.3.2


Browser:
- [ x ] Chrome (desktop) version 61.0.3163.79
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: common/httpIssues related to HTTP and HTTP Clientfreq2: mediumopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).state: confirmedtype: bug/fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions