Skip to content

how to get customezing header #1244

Closed
Closed
@jackwener

Description

@jackwener

phenomenon

send HTTP request with customezing header
(add by postman)
"id": "123456"

I achieve this function by the following code:

md, ok := metadata.FromIncomingContext(ctx)
fmt.Prlnln(md)

but output don't include customezing header kv

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