Skip to content

Latest commit

 

History

History
40 lines (19 loc) · 1.05 KB

README.md

File metadata and controls

40 lines (19 loc) · 1.05 KB

dtps-http: HTTP handling for DTPS

This library is part of the DTPS project.

This library handles the transport/proxying of data over HTTP.

Demos

Run the following commands in different terminals:

This starts a server listening on port 8081 and unix socket /tmp/mine:

dtps-server-example-clock --tcp-port 8081 --unix-path /tmp/mine

These start proxies:

dtps-proxy --tcp-port 8082    --mask-origin  --url http://localhost:8081/
dtps-proxy --tcp-port 8083    --mask-origin  --url http://localhost:8082/
dtps-proxy --tcp-port 8084    --mask-origin  --url http://localhost:8083/

This starts a client reading from the last port:

dtps-client-stats http://localhost:8084/

In this configuration, because of the --mask-origin argument, the proxies will create a sequence of streaming responses.

Without the --mask-origin argument, the alternative URLS will be publicized, and tthe client will realize that if can access the server directly.

Documentation

Run the following command to build the documentation,

dts docs build