# http-debug-util **Repository Path**: hyj-go/http-debug-util ## Basic Information - **Project Name**: http-debug-util - **Description**: http查看工具 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-08 - **Last Updated**: 2025-06-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # http-debug-util #### 介绍 http 请求查看工具 ### 启动 `debug-util [options] [path]` #### options - `-p [port]` `--port=[port]` 指定端口,默认8888, 示例:`debug-util -p 8080`或`debug-util --port=8080` - `--data` 访问`/data`时返回的值, 示例:`debug-util --data=hyj`, 访问`http://localhost:8888/data` 时将返回`hyj` - `-h` `--header` 设置返回时的响应头,可以取环境变量。示例:`debug-util --header=hostname:${HOSTNAME}`, 响应头中将添加请求头:hostname: xxx - `-udp [port]` 启动udp服务 #### path 作为文件服务器使用, 设置此参数访问后将返回设置的路径下的文件列表 #### 其他 - /forward?url=xxx 请求此路径会将请求转发到指定的地址 ## 打包