Skip to main content

Request Handlers

This HTTP Proxy supports different Request Handlers which determine how each incoming HTTP request is handled. They can't be combined, you must choose one based on your needs.

File Server Handler

Serves files from the provided directory. Navigation is scoped to the specified directory. If no directory is provided the CWD will be used.

This is the default behavior for the HTTP server.

Proxy Handler

Proxies requests to the provided URL. The URL provided is used as the base URL for incoming requests.