Skip to content

Instantly share code, notes, and snippets.

View fexx's full-sized avatar
🎯
Focusing

Fernando Evangelista fexx

🎯
Focusing
View GitHub Profile
function FindProxyForURL(url, host) {
url = url.toLowerCase();
host = host.toLowerCase();
if (isPlainHostName(host)) {
return "DIRECT";
}
if ((host == "hml.mol.mapfre.com.br") ||
(host == "ftp.mapfre.com.br") ||
@fexx
fexx / car.service.ts
Last active July 31, 2020 21:43
Arquivo car.service.ts (Consumindo API REST com HttpClient no Angular 8)
import { Injectable } from '@angular/core';
import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';
import { Observable, throwError } from 'rxjs';
import { retry, catchError } from 'rxjs/operators';
import { Car } from '../models/car';
@Injectable({
providedIn: 'root'
})
export class CarService {