Skip to content
chiicPublic

About

🎉Rxjs based tinny HTTP client for the browser.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

intrx

Rxjs based tinny HTTP client for the browser.

Features

Make XMLHttpRequests from the browser Supports the rxjs Intercept request and response unsubscribe requests

Used

import intrx from 'intrx'

examples

// GET method ajax
const intrxSub$: Subscription = intrx.get('/test/url')
     .subscribe(
        res => console.log(res),
        err => console.log(err),
        () => { console.log('complete');}
     )
// cencel
intrxSub$.unsubscribe();

Interceptor( Like axios )

intrx.interceptors.reqInterceptor(function (config) {
    config.headers['XREQ'] = 'V';
    return config;
})
intrx.interceptors.resInterceptor({
    next: (data) => {
        data.v = '3123';
        return data;
    }
})

About

🎉Rxjs based tinny HTTP client for the browser.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages