-
Notifications
You must be signed in to change notification settings - Fork 23
[Web service] request inspector
Hosted by laitos web server, the endpoint dumps the incoming HTTP request for your inspection - this includes the request headers, request body, etc.
This often comes in handy as a diagnosis tool for deploying laitos web server behind intermediary components, such as a load balancer or an API gateway, which often manipulates client's HTTP requests by changing the headers and/or request body.
Under the JSON key HTTPHandlers
, add a string property called
RequestInspectorEndpoint
, value being the URL location of the service.
Keep the location a secret to yourself and make it difficult to guess. Here is an example:
{ ... "HTTPHandlers": { ... "RequestInspectorEndpoint": "/my-request-inspector", ... }, ... }
The service is hosted by web server, therefore remember to run web server.
Use an HTTP client (browser application, command line tool, programming library, etc) to send an HTTP request to the endpoint.
The endpoint will respond in plain text:
- HTTP request protocol, URL path, query parameters.
- HTTP request headers.
- HTTP request body.
- Make the endpoint difficult to guess, this helps to prevent misuse of the service.
Table of Contents
- Home
- Get started
- Component list
- Tips for running on public cloud
- Tips for using apps over satellite
- laitos terminal
Daemon Components
- DNS server
- Mail server
- Web server
- Web proxy server
- Telnet server
- Telegram chat-bot
- Simple IP services server
- SNMP server
- System maintenance
- Phone home telemetry
Web Service Components
- Twilio telephone/SMS hook
- Microsoft chat bot hook
- The Things Network LORA tracker integration
- Recurring commands
- App command form
- Simple app command execution API
- GitLab browser
- Temporary file storage
- Simple web proxy
- Desktop on a page (virtual machine)
- Read telemetry records
- Program health report
- System process explorer
- Prometheus metrics exporter
- HTTP request inspector
- HTTP request logger
Apps