Skip to main content

Request Inspector

The Request Inspector provides real-time visibility into HTTP traffic to your tunnel.

Enable Inspector

tcn share 3000 --inspect
The inspector opens at http://localhost:4040.

Custom Port

tcn share 3000 --inspect 8080

Disable Inspector

tcn share 3000 --no-inspect

Features

Request List

View all incoming requests:
  • Method and URL
  • Status code
  • Response time
  • Timestamp

Request Details

Click any request to see:
  • Headers
  • Query parameters
  • Request body
  • Response headers
  • Response body

Live Updates

Requests appear in real-time via WebSocket connection.

API Access

The inspector provides a REST API:

List Requests

GET http://localhost:4040/api/requests

Get Request Details

GET http://localhost:4040/api/requests/:id

Clear Requests

DELETE http://localhost:4040/api/requests

WebSocket

Subscribe to live request updates:
const ws = new WebSocket('ws://localhost:4040/ws');

ws.onmessage = (event) => {
  const request = JSON.parse(event.data);
  console.log('New request:', request);
};

Use Cases

Webhook Debugging

See exactly what webhooks are sending to your endpoint.

API Testing

Verify request/response payloads during development.

Integration Debugging

Debug third-party service integrations.

Team Collaboration

Share your inspector URL with teammates.