1.0.2 • Published 5 months ago

tny-http v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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();

1.0.2

5 months ago

1.0.1

8 months ago