1

I have a delete request which sends body as part of the request like

import {RequestOptions, Request, RequestMethod} from '@angular/http';

    let headers = new Headers({ 'Content-Type': 'application/json' });
    this.http.delete('/api/deleteAddress', new RequestOptions({
       headers: headers,
       body: [{"folder":true}]
    }));
SVK
  • 2,107
  • 2
  • 20
  • 41
  • check out this post https://stackoverflow.com/questions/38819336/body-of-http-delete-request-in-angular2 – Chatar Singh Jun 04 '18 at 11:50
  • there's no body in the RequestOptions, https://angular.io/api/http/RequestOptions, I think because it's deprecated, in my project it isn't, watch it with F12 – Umpa Jun 04 '18 at 11:55

0 Answers0