aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/grpc/_cython/_cygrpc/records.pxd.pxi
diff options
context:
space:
mode:
authorGravatar Nathaniel Manista <nathaniel@google.com>2017-12-08 03:04:15 +0000
committerGravatar Nathaniel Manista <nathaniel@google.com>2017-12-08 11:07:35 +0000
commit80516e884a8cd03daaa1f4a40d2bb284d5cc1be6 (patch)
tree85ebfe0f7ba9187ee6509db0dcc6a8e5c49f69a9 /src/python/grpcio/grpc/_cython/_cygrpc/records.pxd.pxi
parentae74a320dc96ae55a8c0b9ae3357e1c73010053a (diff)
Streamline metadata in gRPC Python
Diffstat (limited to 'src/python/grpcio/grpc/_cython/_cygrpc/records.pxd.pxi')
-rw-r--r--src/python/grpcio/grpc/_cython/_cygrpc/records.pxd.pxi25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/records.pxd.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/records.pxd.pxi
index 9c40ebf0c2..738769ff40 100644
--- a/src/python/grpcio/grpc/_cython/_cygrpc/records.pxd.pxi
+++ b/src/python/grpcio/grpc/_cython/_cygrpc/records.pxd.pxi
@@ -37,7 +37,7 @@ cdef class OperationTag:
cdef Server shutting_down_server
cdef Call operation_call
cdef CallDetails request_call_details
- cdef MetadataArray request_metadata
+ cdef grpc_metadata_array _c_request_metadata
cdef Operations batch_operations
cdef bint is_new_request
@@ -84,28 +84,15 @@ cdef class ChannelArgs:
cdef list args
-cdef class Metadatum:
-
- cdef grpc_metadata c_metadata
- cdef void _copy_metadatum(self, grpc_metadata *destination) nogil
-
-
-cdef class Metadata:
-
- cdef grpc_metadata *c_metadata
- cdef readonly size_t c_count
-
-
-cdef class MetadataArray:
-
- cdef grpc_metadata_array c_metadata_array
-
-
cdef class Operation:
cdef grpc_op c_op
+ cdef bint _c_metadata_needs_release
+ cdef size_t _c_metadata_count
+ cdef grpc_metadata *_c_metadata
cdef ByteBuffer _received_message
- cdef MetadataArray _received_metadata
+ cdef bint _c_metadata_array_needs_destruction
+ cdef grpc_metadata_array _c_metadata_array
cdef grpc_status_code _received_status_code
cdef grpc_slice _status_details
cdef int _received_cancelled