Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qustavo/httplab
The interactive web server
https://github.com/qustavo/httplab
cli developer-tools development golang http httplab inspector testing webserver
Last synced: 10 days ago
JSON representation
The interactive web server
- Host: GitHub
- URL: https://github.com/qustavo/httplab
- Owner: qustavo
- License: mit
- Created: 2017-02-08T17:13:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T10:59:24.000Z (9 months ago)
- Last Synced: 2024-04-13T18:52:15.260Z (7 months ago)
- Topics: cli, developer-tools, development, golang, http, httplab, inspector, testing, webserver
- Language: Go
- Homepage:
- Size: 504 KB
- Stars: 3,981
- Watchers: 65
- Forks: 123
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - qustavo/httplab - The interactive web server (Go)
- awesome-starred - qustavo/httplab - The interactive web server (http)
- awesome-go-extra - httplab - 02-08T17:13:19Z|2019-06-05T15:10:46Z| (Networking / Uncategorized)
README
![HTTPLAB](https://github.com/gchaincl/httplab/blob/master/images/httplab_logo.png)
[![Build Status](https://travis-ci.org/gchaincl/httplab.svg?branch=master)](https://travis-ci.org/gchaincl/httplab) [![Go Report Card](https://goreportcard.com/badge/github.com/gchaincl/httplab)](https://goreportcard.com/report/gchaincl/httplab) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
The interactive web server.
HTTPLabs let you inspect HTTP requests and forge responses.
---
![screencast](images/screencast.gif)# Install
### Golang
```bash
go install github.com/gchaincl/httplab/cmd/httplab@latest
```### Archlinux
```
yaourt httplab
```### ~Snap~ [FIXME](https://github.com/gchaincl/httplab/issues/78)
On [systems](https://snapcraft.io/docs/core/install) 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 | QuitHTTPLab 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](https://github.com/gchaincl/httplab/blob/master/.httplab.sample)._HTTPLab is heavily inspired by [wuzz](https://github.com/asciimoo/wuzz)_