commit | 6668d51b3c6544ab988a503977e0e80475ac5d3e | [log] [tgz] |
---|---|---|
author | Stanley Cheung <stanleycheung@google.com> | Wed May 18 14:05:09 2016 -0700 |
committer | Stanley Cheung <stanleycheung@google.com> | Tue Jun 14 11:00:15 2016 -0700 |
tree | 137ae8b6c6ff72fc927fbbbbdd0221f7ad3d6fab | |
parent | a47acad040242c03d5e812a40fd11225f327d45e [diff] [blame] |
php: add call getTrailingMetadata API
diff --git a/src/php/lib/Grpc/UnaryCall.php b/src/php/lib/Grpc/UnaryCall.php index b57903d..b114b77 100644 --- a/src/php/lib/Grpc/UnaryCall.php +++ b/src/php/lib/Grpc/UnaryCall.php
@@ -75,6 +75,8 @@ OP_RECV_STATUS_ON_CLIENT => true, ]); - return [$this->deserializeResponse($event->message), $event->status]; + $status = $event->status; + $this->trailing_metadata = $status->metadata; + return [$this->deserializeResponse($event->message), $status]; } }