-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Response body as a single field #217
Comments
You can write a custom marshaler to do that. |
Is there documentation or an example of where to put the custom marshaller? It doesn't jump out at me where it should go. |
Hey @BrianHicks , I see your question was never answered. You can use the WithMarshalerOption in your entry point:
Hope that helps :). |
Part of the API I'm covering needs to be able to return just bytes. Right now I have something similar to the following:
for RPC, that's just fine; the client can unwrap it. However, over HTTP I don't want a wrapping JSON, I only want that
content
field. Is there a way to specify this in the gateway configuration?The text was updated successfully, but these errors were encountered: