Skip to content

Commit

Permalink
wip: start on http interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed May 30, 2024
1 parent a647353 commit b158edc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ Built with:
- or: simply runs snippets of [nushell](https://github.com/nushell/nushell.git) on new event
- the snippets are registered via the event stream
- server facilitates watching for updates + managing processes
- [ ] builtin http server:
- [ ] You can optionally serve HTTP requests from your store. Requests are
written to the event stream as `http.request` and then the connection
watches the event stream for a `http.response`.
- [ ] You can register event handlers that subscribe to `http.request`
events and emit `http.response` events.

## Path Traveled

Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ use xs::store::Store;
struct Args {
#[clap(value_parser)]
path: PathBuf,

/// Enables a HTTP endpoint. Address to listen on [HOST]:PORT or <PATH> for Unix domain socket
#[clap(long, value_parser, value_name = "LISTEN_ADDR")]
http: Option<String>,
}

#[tokio::main]
Expand Down

0 comments on commit b158edc

Please sign in to comment.