Skip to content

Remove result/error envelope in streaming RPC response #1254

Closed
@adasari

Description

@adasari

grpc-gateway wraps stream response in result/error envelope.

{"result": {"data": {}}, "error": {}}

Does result/error envelope required ? nice to have an option to skip result/error envelope ?
Could you help me to understand the reasons behind result/error envelope design ?

in case http byte stream apis (ex: download rpc), this extra envelope is not useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions