tny-http

1.0.2 • Public • Published

Tny-http

http service for Tny framework

How to use

Tny('app')
    
    .include('http')

    .run(['$http',function($http) {

        $http.send({
            url : 'https://reqres.in/api/users',
            method : "POST",
            data : {
                "name": "morpheus",
                "job": "leader"
            },
            async : true,
            callback : function(data){
                console.log(data);
            },
            error : function(err) {
                console.log(err);
            }
        });

    }])
    
    .build();

Readme

Keywords

Package Sidebar

Install

npm i tny-http

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

23.6 kB

Total Files

14

Last publish

Collaborators

  • liviu.maftuleac