1. 首页
  2. 考试认证
  3. 其它
  4. endpoints 用于HTTP服务客户端的简单Javascript帮助程序库

endpoints 用于HTTP服务客户端的简单Javascript帮助程序库

上传者: 2024-10-07 17:16:25上传 ZIP文件 15.98KB 热度 15次
端点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
下载地址
用户评论