glossary.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Glossary &#8212; gRPC Python 1.36.1 documentation</title>
  7. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
  9. <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  10. <script src="_static/jquery.js"></script>
  11. <script src="_static/underscore.js"></script>
  12. <script src="_static/doctools.js"></script>
  13. <link rel="index" title="Index" href="genindex.html" />
  14. <link rel="search" title="Search" href="search.html" />
  15. <link rel="prev" title="gRPC Testing" href="grpc_testing.html" />
  16. <link rel="stylesheet" href="_static/custom.css" type="text/css" />
  17. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
  18. </head><body>
  19. <div class="document">
  20. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  21. <div class="sphinxsidebarwrapper">
  22. <h1 class="logo"><a href="index.html">gRPC Python</a></h1>
  23. <p class="blurb">1.36.1</p>
  24. <h3>Navigation</h3>
  25. <p class="caption"><span class="caption-text">Contents:</span></p>
  26. <ul class="current">
  27. <li class="toctree-l1"><a class="reference internal" href="grpc.html">gRPC</a></li>
  28. <li class="toctree-l1"><a class="reference internal" href="grpc_asyncio.html">gRPC AsyncIO API</a></li>
  29. <li class="toctree-l1"><a class="reference internal" href="grpc_channelz.html">gRPC Channelz</a></li>
  30. <li class="toctree-l1"><a class="reference internal" href="grpc_health_checking.html">gRPC Health Checking</a></li>
  31. <li class="toctree-l1"><a class="reference internal" href="grpc_reflection.html">gRPC Reflection</a></li>
  32. <li class="toctree-l1"><a class="reference internal" href="grpc_status.html">gRPC Status</a></li>
  33. <li class="toctree-l1"><a class="reference internal" href="grpc_testing.html">gRPC Testing</a></li>
  34. <li class="toctree-l1 current"><a class="current reference internal" href="#">Glossary</a></li>
  35. </ul>
  36. <div class="relations">
  37. <h3>Related Topics</h3>
  38. <ul>
  39. <li><a href="index.html">Documentation overview</a><ul>
  40. <li>Previous: <a href="grpc_testing.html" title="previous chapter">gRPC Testing</a></li>
  41. </ul></li>
  42. </ul>
  43. </div>
  44. <div id="searchbox" style="display: none" role="search">
  45. <h3 id="searchlabel">Quick search</h3>
  46. <div class="searchformwrapper">
  47. <form class="search" action="search.html" method="get">
  48. <input type="text" name="q" aria-labelledby="searchlabel" />
  49. <input type="submit" value="Go" />
  50. </form>
  51. </div>
  52. </div>
  53. <script>$('#searchbox').show(0);</script>
  54. </div>
  55. </div>
  56. <div class="documentwrapper">
  57. <div class="bodywrapper">
  58. <div class="body" role="main">
  59. <div class="section" id="glossary">
  60. <h1>Glossary<a class="headerlink" href="#glossary" title="Permalink to this headline">¶</a></h1>
  61. <dl class="glossary">
  62. <dt id="term-metadatum">metadatum<a class="headerlink" href="#term-metadatum" title="Permalink to this term">¶</a></dt><dd><p>A key-value pair included in the HTTP header. It is a
  63. 2-tuple where the first entry is the key and the
  64. second is the value, i.e. (key, value). The metadata key is an ASCII str,
  65. and must be a valid HTTP header name. The metadata value can be
  66. either a valid HTTP ASCII str, or bytes. If bytes are provided,
  67. the key must end with ‘-bin’, i.e.
  68. <code class="docutils literal notranslate"><span class="pre">('binary-metadata-bin',</span> <span class="pre">b'\\x00\\xFF')</span></code></p>
  69. </dd>
  70. <dt id="term-metadata">metadata<a class="headerlink" href="#term-metadata" title="Permalink to this term">¶</a></dt><dd><p>A sequence of metadatum.</p>
  71. </dd>
  72. <dt id="term-serializer">serializer<a class="headerlink" href="#term-serializer" title="Permalink to this term">¶</a></dt><dd><p>A callable function that encodes an object into bytes. Applications are
  73. allowed to provide any customized serializer, so there isn’t a restriction
  74. for the input object (i.e. even <code class="docutils literal notranslate"><span class="pre">None</span></code>). On the server-side, the
  75. serializer is invoked with server handler’s return value; on the
  76. client-side, the serializer is invoked with outbound message objects.</p>
  77. </dd>
  78. <dt id="term-deserializer">deserializer<a class="headerlink" href="#term-deserializer" title="Permalink to this term">¶</a></dt><dd><p>A callable function that decodes bytes into an object. Same as serializer,
  79. the returned object doesn’t have restrictions (i.e. <code class="docutils literal notranslate"><span class="pre">None</span></code> allowed). The
  80. deserializer is invoked with inbound message bytes on both the server side
  81. and the client-side.</p>
  82. </dd>
  83. <dt id="term-wait_for_ready">wait_for_ready<a class="headerlink" href="#term-wait_for_ready" title="Permalink to this term">¶</a></dt><dd><p>If an RPC is issued but the channel is in the TRANSIENT_FAILURE or SHUTDOWN
  84. states, the library cannot transmit the RPC at the moment. By default, the
  85. gRPC library will fail such RPCs immediately. This is known as “fail fast.”
  86. RPCs will not fail as a result of the channel being in other states
  87. (CONNECTING, READY, or IDLE).</p>
  88. <p>When the wait_for_ready option is specified, the library will queue RPCs
  89. until the channel is READY. Any submitted RPCs may still fail before the
  90. READY state is reached for other reasons, e.g., the client channel has been
  91. shut down or the RPC’s deadline has been reached.</p>
  92. </dd>
  93. <dt id="term-channel_arguments">channel_arguments<a class="headerlink" href="#term-channel_arguments" title="Permalink to this term">¶</a></dt><dd><p>A list of key-value pairs to configure the underlying gRPC Core channel or
  94. server object. Channel arguments are meant for advanced usages and contain
  95. experimental API (some may not labeled as experimental). Full list of
  96. available channel arguments and documentation can be found under the
  97. “grpc_arg_keys” section of “grpc_types.h” header file (<a class="reference external" href="https://github.com/grpc/grpc/blob/v1.36.x/include/grpc/impl/codegen/grpc_types.h">https://github.com/grpc/grpc/blob/v1.36.x/include/grpc/impl/codegen/grpc_types.h</a>).
  98. For example, if you want to disable TCP port reuse, you may construct
  99. channel arguments like: <code class="docutils literal notranslate"><span class="pre">options</span> <span class="pre">=</span> <span class="pre">(('grpc.so_reuseport',</span> <span class="pre">0),)</span></code>.</p>
  100. </dd>
  101. </dl>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="clearer"></div>
  107. </div>
  108. <div class="footer">
  109. &copy;2020, The gRPC Authors.
  110. |
  111. <a href="_sources/glossary.rst.txt"
  112. rel="nofollow">Page source</a>
  113. </div>
  114. <script type="text/javascript">
  115. var _gaq = _gaq || [];
  116. _gaq.push(['_setAccount', 'UA-60127042-1']);
  117. _gaq.push(['_setDomainName', 'none']);
  118. _gaq.push(['_setAllowLinker', true]);
  119. _gaq.push(['_trackPageview']);
  120. (function() {
  121. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  122. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  123. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  124. })();
  125. </script>
  126. </body>
  127. </html>