endpoints 用于HTTP服务客户端的简单Javascript帮助程序库
端点HTTP服务客户端的简单帮助程序库。 Endpoints在浏览器和Node中工作,使用公开请求响应对象的通用接口,以及Node和浏览器AJAX的。查看。 tl;博士var Endpoints = require ( 'endpointsjs' ) ; var myEndpoint = Endpoints . create ( '/some/url/pattern' ) . header ( 'Content-Type' , 'application/json' ) . methods ( [ 'get' , 'post' ] ) ; myEndpoint . get ( ) . send ( ) // Returns an Q Promise (Promises/A+) . invoke ( 'text' ) // You
下载地址
用户评论