I made it, it's working now but some functions had to be removed (retry, timeout, delay, map):
headers.append('Content-Type', 'application/json'); this.http.post(url, JSON.stringify(json), {headers: headers}) // .retry(2) // .timeout(10000, new Error('Tiempo de espera alcanzado.')) // .delay(10) // .map((res) => res.json()) .subscribe( (data) => resolve(data.json()), (err) => reject(err) );