Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwtgck/tcphttp-server
TCP-over-HTTP server: Clients can use it with curl and perhaps browser
https://github.com/nwtgck/tcphttp-server
http http-server nodejs tcp tcp-over-http
Last synced: about 1 month ago
JSON representation
TCP-over-HTTP server: Clients can use it with curl and perhaps browser
- Host: GitHub
- URL: https://github.com/nwtgck/tcphttp-server
- Owner: nwtgck
- License: mit
- Created: 2018-11-18T14:04:10.000Z (almost 6 years ago)
- Default Branch: develop
- Last Pushed: 2022-01-16T04:37:04.000Z (almost 3 years ago)
- Last Synced: 2024-10-01T19:15:12.793Z (about 2 months ago)
- Topics: http, http-server, nodejs, tcp, tcp-over-http
- Language: TypeScript
- Homepage:
- Size: 162 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# tcphttp-server
[![npm](https://img.shields.io/npm/v/tcphttp-server.svg)](https://www.npmjs.com/package/tcphttp-server) [![Build Status](https://travis-ci.com/nwtgck/tcphttp-server.svg?token=TuxNpqznwwyy7hyJwBVm&branch=develop)](https://travis-ci.com/nwtgck/tcphttp-server)
[![Docker Automated build](https://img.shields.io/docker/automated/nwtgck/tcphttp-server.svg)](https://hub.docker.com/r/nwtgck/tcphttp-server/) [![](https://images.microbadger.com/badges/image/nwtgck/tcphttp-server.svg)](https://microbadger.com/images/nwtgck/tcphttp-server "Get your own image badge on microbadger.com")[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
TCP over HTTP server
## Quick Start
Here is examples to show how to use TCP over HTTP. Actually, the following examples show "HTTP over HTTPS" and "HTTPS over HTTPS".
Here is an example to request to example.com.
```bash
curl --data-binary @- 'https://tcphttp.glitch.me?host=example.com&port=80' < by the following command.```bash
docker run -p 8181:8080 nwtgck/tcphttp-server
```You can also specify options as follows.
```bash
docker run -p 8181:80 nwtgck/tcphttp-server --http-port=80
```### Way 3: Run server with npm
Install `tcphttp-server` as command as follows.
```bash
npm install -g tcphttp-server
```Then, run a server as follows.
```bash
tcphttp-server --http-port=8181
```### Way 4: Run server from source
Run a server from the latest source.
```bash
# Clone this repository
git clone https://github.com/nwtgck/tcphttp-server.git
# Go to the directory
cd tcphttp-server
# Install dependencies
npm install
# Run a server
npm start
```