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

Remove support for parameter injection. #82

Merged
merged 1 commit into from
Feb 26, 2022
Merged

Conversation

creachadair
Copy link
Owner

This feature adds a lot of code for relatively little benefit. In practice, a
service can achieve the same effect by embedding common headers in its argument
types, which gives more control to both client and server without the overhead
of an additional encoding step.

  • Remove the EncodeContext and DecodeContext options.
  • Remove the plumbing to encode (client) and decode (server) contexts.
  • Remove the jctx package.
  • Update usage in the jcall command-line tool.
  • Clean up tests.

This feature adds a lot of code for relatively little benefit. In practice, a
service can achieve the same effect by embedding common headers in its argument
types, which gives more control to both client and server without the overhead
of an additional encoding step.

- Remove the EncodeContext and DecodeContext options.
- Remove the plumbing to encode (client) and decode (server) contexts.
- Remove the jctx package.
- Update usage in the jcall command-line tool.
- Clean up tests.
@creachadair creachadair merged commit 520888a into default Feb 26, 2022
@creachadair creachadair deleted the mjf/no-context branch February 26, 2022 17:19
creachadair added a commit that referenced this pull request May 13, 2022
After #82 removed support for parameter injection, support for plumbing the
HTTP request context into the client became pointless. This change removes the
vestiges of it, which can no longer serve any useful purpose.
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.

1 participant