-
Notifications
You must be signed in to change notification settings - Fork 86
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
Grammar edit for tutorial #76
base: master
Are you sure you want to change the base?
Conversation
Each function in each signature has at least 2 parameters:
So, using context parameter, developers can get an access to:
hopefully, this helps. |
PythonFDKIntroduction/README.md
Outdated
HTTP: the function will receive the full HTTP request | ||
JSON: the function will receive a JSON object very similar to CNCF OpenEvents | ||
* default: whatever an application sends inside the HTTP request body will be transferred to the function | ||
* HTTP: the function receives the full HTTP request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line and add:
- cloudevent: the function receives the a CloudEvent object
PythonFDKIntroduction/README.md
Outdated
|
||
Please note that FDK-Python supports only JSON format. | ||
In contrast, HTTP and JSON formats are applied to hot functions. A hot function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In contrast, CloudEvent and JSON formats are applied to hot functions.
HTTP format no longer supported by fdk-python
PythonFDKIntroduction/README.md
Outdated
`idle_timeout` value. For a developer, the HTTP format feels like talking to a | ||
web server because it uses simple HTTP methods. The JSON format is a bit | ||
different because Fn automatically assembles a JSON object from the HTTP | ||
request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this:
the HTTP format feels like talking to a web server because it uses simple HTTP methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a description for cloudevent
format? Here's the doc: https://github.com/fnproject/fn/blob/master/docs/developers/function-format.md#cloudevent-io-format
Ok. I made the changes that you requested. Let me know what you think. |
Hey Denis, let's see if we can get this one merged. Looks like I may need to resolve some conflicts. |
Here is my grammar edit for the tutorial. Mostly changing verbs to active voice and simplifying sentences.
I couldn't figure out this sentence:
So if you have a chance, take another try at that one.
Let me know if you have any questions.
Mike W.