
Servidor web interactivo para inspeccionar solicitudes HTTP y forjar respuestas, con una interfaz de usuario en terminal para depuración en tiempo real y pruebas de API.

El servidor web interactivo.
HTTPLabs te permite inspeccionar peticiones HTTP y forjar respuestas.

go install github.com/gchaincl/httplab/cmd/httplab@latest
yaourt httplab
En sistemas donde snap sea compatible:
snap install httplab
Cada lanzamiento proporciona binarios precompilados para diferentes arquitecturas. Puedes descargarlos aquí: https://github.com/gchaincl/httplab/releases/latest
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.
HTTPLab utiliza un archivo para almacenar respuestas predefinidas; buscará un archivo llamado .httplab en el directorio actual y, si no lo encuentra, recurrirá a $HOME.
Un archivo de ejemplo se puede encontrar aquí.
HTTPLab está fuertemente inspirado por wuzz
| Tecla | Descripción |
|---|
| Tab | Siguiente entrada |
| Shift+Tab | Entrada anterior |
| Ctrl+a | Aplicar cambios de respuesta |
| Ctrl+r | Reiniciar historial de peticiones |
| Ctrl+s | Guardar respuesta como |
| Ctrl+f | Guardar petición como |
| Ctrl+l | Alternar lista de respuestas |
| Ctrl+t | Alternar constructor de respuestas |
| Ctrl+o | Abrir archivo de cuerpo |
| Ctrl+b | Cambiar modo de cuerpo |
| Ctrl+h | Alternar ayuda |
| Ctrl+w | Alternar ajuste de línea |
| q | Cerrar ventana emergente |
| PgUp | Petición anterior |
| PgDown | Siguiente petición |
| Ctrl+c | Salir |