Skip to content

Is any method to access the raw request body in metadata? #1908

Closed
@lonng

Description

@lonng

Hi, everyone,

I am using the grpc-gateway in my production environment. And I encountered some issues when I try to access the raw request body via the metadata.

The following is my scenarios:

  • I defined an API for the PATCH request.
  • The patch API callback method will use the structure that contains all fields.
  • The request JSON body only contains part fields of it.
  • I want to get the raw request JSON body to determine which fields are patched and an unmarshalled struct.

If is there a solution for that, please leave comments on the issue, thanks very much.

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