Commit 0bd23860 authored by Bengfort's avatar Bengfort
Browse files

split comment into README

parent 281e6fbf
This service translates normal HTTP to a custom protocol where requests
are sent as Server-Sent-Events (SSE) and responses are sent as HTTP POST
requests.
This is useful to send requests to services behind a firewall.
```
# establish SSE connection
curl "http://localhost:8001/castellum/"
# send a request (blocks until response is available or timeout)
curl "http://localhost:8001/scheduler/" --data foo
# send a response
curl "http://localhost:8001/castellum/?id=1&success" --data bar
```
// This service translates normal HTTP to a custom protocol here requests are
// sent as Server-Sent-Events (SSE) and responses are sent as HTTP POST
// requests.
//
// This is useful to send requests to services behind a firewall.
//
// # establish SSE connection
// curl "http://localhost:8001/castellum/"
//
// # send a request (blocks until response is available or timeout)
// curl "http://localhost:8001/scheduler/" --data foo
//
// # send a response
// curl "http://localhost:8001/castellum/?id=1&success" --data bar
package main
import (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment