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

Support passing headers in calls #17

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Support passing headers in calls #17

merged 1 commit into from
Aug 9, 2024

Conversation

jackkleeman
Copy link
Contributor

Requires runtime support: restatedev/restate#1741

@jackkleeman jackkleeman force-pushed the headers branch 2 times, most recently from 9fe6871 to 76c6872 Compare July 23, 2024 10:13
Comment on lines +38 to +39
Codec encoding.Codec
Headers map[string]string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curiosity, could you infer the content-type header from Codec? Maybe we can have an CodecWithContentType ducktype too...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's basically what a payload codec is. Yes we could maybe make this a payload codec field and set content type this way

Copy link
Contributor Author

@jackkleeman jackkleeman Jul 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, its backwards incompatible to start adding a field to the headers unless we specifically exclude it from non-determinism comparisons. caution required. one wonders if it should even be a separate field in the call entries?

Copy link
Contributor

@slinkydeveloper slinkydeveloper Jul 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, its backwards incompatible to start adding a field to the headers unless we specifically exclude it from non-determinism comparisons.

This change, like every addition to the protocol/sdk, indeed requires a minor version bump (in the 1.x schema, but same with 0.x i guess), to notify the user that when bumping the sdk, they need to re-register again as protocol specifics might change. This is a general rule that applies.

Copy link

github-actions bot commented Aug 9, 2024

Test Results

  5 files  ±0    5 suites  ±0   7m 7s ⏱️ -10s
 41 tests ±0   41 ✅ ±0  0 💤 ±0  0 ❌ ±0 
101 runs  ±0  101 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 3c3ba16. ± Comparison against base commit adafb6e.

@jackkleeman jackkleeman merged commit adae520 into main Aug 9, 2024
3 checks passed
@jackkleeman jackkleeman deleted the headers branch August 9, 2024 12:38
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