https://github.com/betta-cyber/cow
A light HTTP server for Rust.
https://github.com/betta-cyber/cow
async rust rust-language server
Last synced: 11 months ago
JSON representation
A light HTTP server for Rust.
- Host: GitHub
- URL: https://github.com/betta-cyber/cow
- Owner: betta-cyber
- Created: 2019-09-19T12:19:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-01T12:21:03.000Z (about 6 years ago)
- Last Synced: 2025-01-31T12:13:17.940Z (over 1 year ago)
- Topics: async, rust, rust-language, server
- Language: Rust
- Homepage:
- Size: 101 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cow
=======
A light HTTP server for Rust.
# Getting Started
## example cow.toml config
```toml
debug = false
port = "3000"
address = "0.0.0.0"
root_dir = "/home/betta/license_generator/templates"
[[server]]
[server.location]
pattern = "/api/v1"
proxy_pass = "127.0.0.1:8000"
[[server]]
[server.location]
pattern = "/"
static_path = "/"
```
## install and run
To build the cow from the root directory of this repo:
```
> cargo build
```
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.