@angular/common/http#XhrFactory TypeScript Examples

The following examples show how to use @angular/common/http#XhrFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: xhr.ts    From nativescript-http with MIT License 6 votes vote down vote up
/**
 * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.
 *
 */
@Injectable()
export class NSHTTPXhr implements XhrFactory {
    constructor() {}
    build(): any {
        return <any>(new NSHTTPXMLHttpRequest());
    }
}
Example #2
Source File: xhr.d.ts    From nativescript-http with MIT License 5 votes vote down vote up
export declare class NSHTTPXhr implements XhrFactory {
    constructor();
    build(): any;
    static ɵfac: i0.ɵɵFactoryDeclaration<NSHTTPXhr, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<NSHTTPXhr>;
}
Example #3
Source File: xhr.d.ts    From nativescript-plugins with Apache License 2.0 5 votes vote down vote up
export declare class NSHTTPXhr implements XhrFactory {
    constructor();
    build(): any;
    static ɵfac: i0.ɵɵFactoryDef<NSHTTPXhr, never>;
    static ɵprov: i0.ɵɵInjectableDef<NSHTTPXhr>;
}