NavidJalali commented on code in PR #471:
URL: https://github.com/apache/pekko-grpc/pull/471#discussion_r2164025569
##########
runtime/src/main/scala/org/apache/pekko/grpc/internal/GrpcResponseHelpers.scala:
##########
@@ -111,6 +111,6 @@ object GrpcResponseHelpers {
headers.`Message-Encoding`(writer.messageEncoding.name) ::
GrpcEntityHelpers.trailers(trailer.status, trailer.metadata),
entity = HttpEntity.empty(writer.contentType)
- )
+ ).withAttributes(Map(AttributeKeys.trailer -> trailer))
Review Comment:
I think its nicer on the akka http level to have a unified way of finding
the trailer regardless of the success or failure of the request, wdyt
##########
runtime/src/main/scala/org/apache/pekko/grpc/internal/GrpcResponseHelpers.scala:
##########
@@ -111,6 +111,6 @@ object GrpcResponseHelpers {
headers.`Message-Encoding`(writer.messageEncoding.name) ::
GrpcEntityHelpers.trailers(trailer.status, trailer.metadata),
entity = HttpEntity.empty(writer.contentType)
- )
+ ).withAttributes(Map(AttributeKeys.trailer -> trailer))
Review Comment:
I think its nicer on the akka http level to have a unified way of finding
the trailer regardless of the success or failure of the request, wdyt?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]