httplab

The interactive web server

Github星跟踪图

HTTPLAB

Build Status Go Report Card PRs Welcome

The interactive web server.

HTTPLabs let you inspect HTTP requests and forge responses.


screencast

Install

Golang

go get github.com/gchaincl/httplab
go install github.com/gchaincl/httplab/cmd/httplab

Archlinux

yaourt httplab

Snap FIXME

On systems where snap is supported:

snap install httplab

Binary distribution

Each release provides pre-built binaries for different architectures, you can download them here: https://github.com/gchaincl/httplab/releases/latest

Help

Usage of httplab:
  -a, --auto-update       Auto-updates response when fields change. (default true)
  -b, --body string       Specifies the inital response body. (default "Hello, World")
  -c, --config string     Specifies custom config path.
      --cors              Enable CORS.
      --cors-display      Display CORS requests. (default true)
  -d, --delay int         Specifies the initial response delay in ms.
  -H, --headers strings   Specifies the initial response headers. (default [X-Server:HTTPLab])
  -p, --port int          Specifies the port where HTTPLab will bind to. (default 10080)
  -s, --status string     Specifies the initial response status. (default "200")
  -v, --version           Prints current version.

Key Bindings

Key, Description
----------------------------------------, ---------------------------------------
Tab, Next Input
Shift+Tab, Previous Input
Ctrl+a, Apply Response changes
Ctrl+r, Resets Request history
Ctrl+s, Save Response as
Ctrl+f, Save Request as
Ctrl+l, Toggle Responses list
Ctrl+t, Toggle Response builder
Ctrl+o, Open Body file
Ctrl+b, Switch Body mode
Ctrl+h, Toggle Help
Ctrl+w, Toggle line wrapping
q, Close popup
PgUp, Previous Request
PgDown, Next Request
Ctrl+c, Quit

HTTPLab uses file to store pre-built responses, it will look for a file called .httplab on the current directory if not found it will fallback to $HOME.
A sample file can be found here.

HTTPLab is heavily inspired by wuzz

主要指标

概览
名称与所有者qustavo/httplab
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2017-02-08 17:13:19
推送于2024-02-05 10:59:24
最后一次提交2024-02-05 09:57:34
发布数8
最新版本名称v0.4.2 (发布于 2023-05-19 22:37:03)
第一版名称v0.0.1 (发布于 2017-03-01 09:15:11)
用户参与
星数4.1k
关注者数63
派生数124
提交数150
已启用问题?
问题数47
打开的问题数10
拉请求数32
打开的拉请求数3
关闭的拉请求数10
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?