ulises-ionic-native-http-connection-backend
Version:
A solution to CORS problem with Ionic and WKWebView
11 lines (10 loc) • 440 B
TypeScript
import { HttpBackend, HttpEvent, HttpRequest } from '@angular/common/http';
import { HTTP } from '@ionic-native/http';
import { Observable } from 'rxjs/Observable';
export declare class NativeHttpBackend implements HttpBackend {
private nativeHttp;
constructor(nativeHttp: HTTP);
handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
private detectDataSerializerType(req);
private getBodyParams(query);
}