glossary.html 7.0 KB

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