-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Feature Request] Expose Requested Content-Type In /system/functions #1333
Comments
My thoughts:
What do you think? |
I agree about not wanting to limit the use cases (ex, for binary data), so I think that would be an argument to have this exposed in a manifest (maybe with |
/add label: question |
/add label: duplicate |
Duplicate of #1337 |
@Miserlou thank you for your suggestion, it was already being tracked on Trello, but I've created an issue for it too. |
/lock: move to the new thread |
Different functions in the OpenFaaS function store behave differently when receiving content with different
Content-Type
headers. Some expecttext/plain
and return null otherwise, some expectapplication/json
and return null otherwise, and some return the same thing no matter what.There is no way to know apriori which the function expects, making it difficult to build complex pipelines without manually knowing and preparing requests based on what each function expects.
It would be much better if I could use the
/system/functions
endpoint to see which it expects so that pipelines could be built programatically.Even better would be if we could could just not have to worry about this at all, and simply mandate that all functions speak
application/json
in and out.The text was updated successfully, but these errors were encountered: