Skip to content
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

add http/grpc header support for py/js functions #40

Merged
merged 5 commits into from
Aug 19, 2024

Conversation

ChaosRez
Copy link
Member

@ChaosRez ChaosRez commented Aug 8, 2024

  • update function handler for python + JS
  • pass grpc headers (metadata)
  • pass http headers (http.go)
  • update rproxy to pass the headers to function handlers
  • test it to log print the headers
  • update python and js examples
  • update readme to mention this change

pkg/rproxy/rproxy.go Outdated Show resolved Hide resolved
pkg/grpc/grpc.go Outdated Show resolved Hide resolved
test/fns/echo/fn.py Outdated Show resolved Hide resolved
@pfandzelter pfandzelter changed the base branch from main to mm/headers August 19, 2024 12:34
@pfandzelter pfandzelter merged commit eaf3fd3 into OpenFogStack:mm/headers Aug 19, 2024
1 check failed
pfandzelter pushed a commit that referenced this pull request Aug 19, 2024
* add http/grpc header support for py/js functions

* fix review comments

* fix tests for raspberry | bypass special chars in request headers

* the missing tests for the headers func + update sieve func
pfandzelter pushed a commit that referenced this pull request Aug 19, 2024
* add http/grpc header support for py/js functions

* fix review comments

* fix tests for raspberry | bypass special chars in request headers

* the missing tests for the headers func + update sieve func
pfandzelter pushed a commit that referenced this pull request Aug 19, 2024
* add http/grpc header support for py/js functions

* fix review comments

* fix tests for raspberry | bypass special chars in request headers

* the missing tests for the headers func + update sieve func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants