You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementing content-encoding and compression via the current functionality feels unnecessarily complex. Currently, I need to rely on boilerplate middleware for this. It would be much more efficient if content encoding could be handled directly through a generator extension.
This would automatically handle content encoding and compression more efficiently, improving both developer experience and code generation.
Let me know what you think, it idea overall is likeable I could work on PR. I like idea of correcting application/gzip response, not implementing generator extension instead.
Description
Implementing content-encoding and compression via the current functionality feels unnecessarily complex. Currently, I need to rely on boilerplate middleware for this. It would be much more efficient if content encoding could be handled directly through a generator extension.
Current structure:
Desired structure (examples):
or
Alternatively, the current structure should generate correct content encoding when specifying
application/gzip
:At the moment, it generates the following Go code:
But the expected code that would reduce my reliance on middleware should look more like this:
This would automatically handle content encoding and compression more efficiently, improving both developer experience and code generation.
Let me know what you think, it idea overall is likeable I could work on PR. I like idea of correcting application/gzip response, not implementing generator extension instead.
References:
The text was updated successfully, but these errors were encountered: