code: function method (request) {
  
      if (request.emulateHTTP && /^(PUT|PATCH|DELETE)$/i.test(request.method)) {
          request.headers.set('X-HTTP-Method-Override', request.method);
          request.method = 'POST';
      }
  
  }
docs: HTTP method override Interceptor.