Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashleysommer/rust-fcgi
Rust bindings for FastCGI.
https://github.com/ashleysommer/rust-fcgi
Last synced: 16 days ago
JSON representation
Rust bindings for FastCGI.
- Host: GitHub
- URL: https://github.com/ashleysommer/rust-fcgi
- Owner: ashleysommer
- Created: 2015-08-18T13:24:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-18T13:52:07.000Z (over 9 years ago)
- Last Synced: 2024-11-18T06:17:15.812Z (about 1 month ago)
- Language: Rust
- Size: 93.8 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
rust-fcgi
=========This package provides a Rust binding to the C/C++ fast-cgi library.
# Basic Usage
Run `cargo build` to compile the example code under `examples/example.rs`.
This will provide you with a simple "Hello World" web service which is writing
some status information to stdout and an error message to the FCGI error stream.To use the example programme simply configure your web server to run the binary
or connect to it via tcp, here is an example configuration for lighttpd:
```
fastcgi.server = (
"/rust" => ((
"host" => "127.0.0.1",
"port" => 8080,
"check-local" => "disable"
))
)
```Now you can start the FCGI process with
```
spawn-fcgi target/fcgi-example -n -p 8080
```Visit http://127.0.0.1/cpp/hello to receive a welcoming greeting. You can also
try POSTing to the URL to test the `readall` method which should write the posted
request body to stdout:
```
curl --request POST --data Test http://127.0.0.1/rust
```