Tag: kong

在服务器端结束时使用状态码404使用swagger

当我添加一个API通过像POST和GET这样的环回Swagger函数,我得到相同的状态码时, 'use strict'; var http = require("http"); const keepAliveAgent = new http.Agent({ keepAlive: true }); const getOptions = { hostname: '127.0.0.1', port: 8001, path: '/plugins/', method: 'GET', headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }; const options = { hostname: '127.0.0.1', port: 8001, path: '/plugins/', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' } }; module.exports = function (Plugins) […]