UNPKG

@jzt-hinny/mvc

Version:
43 lines 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpMethod = void 0; var HttpMethod; (function (HttpMethod) { /** * GET方法请求一个指定资源的表示形式. 使用GET的请求应该只被用于获取数据 */ HttpMethod["GET"] = "GET"; /** * HEAD方法请求一个与GET请求的响应相同的响应,但没有响应体 */ HttpMethod["HEAD"] = "HEAD"; /** * POST方法用于将实体提交到指定的资源,通常导致在服务器上的状态变化或副作用 */ HttpMethod["POST"] = "POST"; /** * PUT方法用请求有效载荷替换目标资源的所有当前表示 */ HttpMethod["PUT"] = "PUT"; /** * DELETE方法删除指定的资源 */ HttpMethod["DELETE"] = "DELETE"; /** * CONNECT方法建立一个到由目标资源标识的服务器的隧道 */ HttpMethod["CONNECT"] = "CONNECT"; /** * OPTIONS方法用于描述目标资源的通信选项 */ HttpMethod["OPTIONS"] = "OPTIONS"; /** * TRACE方法沿着到目标资源的路径执行一个消息环回测试 */ HttpMethod["TRACE"] = "TRACE"; /** * PATCH方法用于对资源应用部分修改 */ HttpMethod["PATCH"] = "PATCH"; })(HttpMethod = exports.HttpMethod || (exports.HttpMethod = {})); //# sourceMappingURL=HttpRouter.js.map