diff options
author | Nathaniel Manista <nathaniel@google.com> | 2017-12-08 03:04:15 +0000 |
---|---|---|
committer | Nathaniel Manista <nathaniel@google.com> | 2017-12-08 11:07:35 +0000 |
commit | 80516e884a8cd03daaa1f4a40d2bb284d5cc1be6 (patch) | |
tree | 85ebfe0f7ba9187ee6509db0dcc6a8e5c49f69a9 /src/python/grpcio/grpc/_cython/_cygrpc/metadata.pxd.pxi | |
parent | ae74a320dc96ae55a8c0b9ae3357e1c73010053a (diff) |
Streamline metadata in gRPC Python
Diffstat (limited to 'src/python/grpcio/grpc/_cython/_cygrpc/metadata.pxd.pxi')
-rw-r--r-- | src/python/grpcio/grpc/_cython/_cygrpc/metadata.pxd.pxi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/metadata.pxd.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/metadata.pxd.pxi new file mode 100644 index 0000000000..a18c365807 --- /dev/null +++ b/src/python/grpcio/grpc/_cython/_cygrpc/metadata.pxd.pxi @@ -0,0 +1,26 @@ +# Copyright 2017 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +cdef void _store_c_metadata( + metadata, grpc_metadata **c_metadata, size_t *c_count) + + +cdef void _release_c_metadata(grpc_metadata *c_metadata, int count) + + +cdef tuple _metadatum(grpc_slice key_slice, grpc_slice value_slice) + + +cdef tuple _metadata(grpc_metadata_array *c_metadata_array) |