This project looks interesting, and I look forward to making things wih it! One thing I'm a bit confused about is how one goes about building a function from scratch, where a template isn't available. I.e. how would I build a function in Rust? What should my Dockerfile look like? Can I just use the official Rust image and ensure that my binary launches as soon as the container comes up?
I also gather that I simply read from stdin and output to stdout. This leaves me with several unanswered questions:
- Can I read request headers somehow?
- Can I change the content-type of my response to, say, output RSS/Atom feeds?
- Related, can I output other headers to the client?
- Can I change the status code of the response?
A "functions from scratch" guide might be a useful addition. If such a thing already exists, then please point me to it and apologies for missing it. Thanks!
This project looks interesting, and I look forward to making things wih it! One thing I'm a bit confused about is how one goes about building a function from scratch, where a template isn't available. I.e. how would I build a function in Rust? What should my Dockerfile look like? Can I just use the official Rust image and ensure that my binary launches as soon as the container comes up?
I also gather that I simply read from stdin and output to stdout. This leaves me with several unanswered questions:
A "functions from scratch" guide might be a useful addition. If such a thing already exists, then please point me to it and apologies for missing it. Thanks!