Custom HTTP headers with each packet

537 views
Skip to first unread message

gamer boii

unread,
Dec 7, 2021, 12:43:39 AM12/7/21
to grpc.io
My grpc server is reading a pcap file and sending it to a backend client. Now, I want to add some custom HTTP header to each packet before sending it to the backend client. How can I do it? Are there any example code I can look at?

Eric Anderson

unread,
Dec 9, 2021, 11:36:49 AM12/9/21
to gamer boii, grpc.io
What language is your server written in? gRPC's Metadata is sent as HTTP headers, so you want to add Metadata to each response.

On Mon, Dec 6, 2021 at 9:43 PM gamer boii <noahc...@gmail.com> wrote:
My grpc server is reading a pcap file and sending it to a backend client. Now, I want to add some custom HTTP header to each packet before sending it to the backend client. How can I do it? Are there any example code I can look at?

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/63e92602-2cfa-4d19-9c3e-4d570026523an%40googlegroups.com.
Message has been deleted

gamer boii

unread,
Dec 12, 2021, 8:49:43 AM12/12/21
to grpc.io
My client and server is in Go. The server is reading a pcap file and sending to a cleint. Now I want to send a custom header with each packet of this pcap file.

Easwar Swaminathan

unread,
Dec 15, 2021, 4:38:42 PM12/15/21
to grpc.io
Reply all
Reply to author
Forward
0 new messages