-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define input/output formats #11
Comments
In gitlab by @rdallman on May 17, 2017, 16:47 this is mostly just clean up now? |
In gitlab by @treeder on May 18, 2017, 10:42 Ya, I think so. I'm going to go through all the docs and examples actually and clean thing up. Lots of cruft. |
In gitlab by @treeder on May 25, 2017, 13:31 closed |
In gitlab by @treeder on May 25, 2017, 13:31 I attempted to do this, but there's too much stuff to go into one doc and decided it's maybe not the best to do this. !17 has some minor fixes though. |
In gitlab by @treeder on May 11, 2017, 11:07
We can support various formats and essentially two modes: one time and streaming. One time executes a container once for each request and streaming enables "hot functions" so you can keep a container running and stream requests in.
All input is via STDIN, response output is via STDOUT and logging output is via STDERR.
We'll start with a couple of different formats:
Default
Env vars
Input
Stream request body directly in.
Output
Output from STDOUT is returned to client. JSON content-type.
HTTP
Env vars
Input
Exactly the same as the request?
Output
TODO: How to set content type? Can't do this with Lambda, but would be nice to offer this ability. Response when streaming could have a header section.
Other options
Perhaps an easier to parse format like json could be used.
The text was updated successfully, but these errors were encountered: