src/build/html/pyams_utils.protocol.html
changeset 0 d153941bb745
equal deleted inserted replaced
-1:000000000000 0:d153941bb745
       
     1 
       
     2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       
     3   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
     4 
       
     5 <html xmlns="http://www.w3.org/1999/xhtml">
       
     6   <head>
       
     7     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       
     8     <title>pyams_utils.protocol package &#8212; PyAMS User Guide 0.1.0 documentation</title>
       
     9     <link rel="stylesheet" href="_static/pyramid.css" type="text/css" />
       
    10     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
       
    11     <script type="text/javascript">
       
    12       var DOCUMENTATION_OPTIONS = {
       
    13         URL_ROOT:    './',
       
    14         VERSION:     '0.1.0',
       
    15         COLLAPSE_INDEX: false,
       
    16         FILE_SUFFIX: '.html',
       
    17         HAS_SOURCE:  true,
       
    18         SOURCELINK_SUFFIX: '.txt'
       
    19       };
       
    20     </script>
       
    21     <script type="text/javascript" src="_static/jquery.js"></script>
       
    22     <script type="text/javascript" src="_static/underscore.js"></script>
       
    23     <script type="text/javascript" src="_static/doctools.js"></script>
       
    24     <link rel="index" title="Index" href="genindex.html" />
       
    25     <link rel="search" title="Search" href="search.html" />
       
    26 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Neuton&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
       
    27 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
       
    28 <!--[if lte IE 6]>
       
    29 <link rel="stylesheet" href="_static/ie6.css" type="text/css" media="screen" charset="utf-8" />
       
    30 <![endif]-->
       
    31 
       
    32   </head>
       
    33   <body>
       
    34 
       
    35     <div class="related" role="navigation" aria-label="related navigation">
       
    36       <h3>Navigation</h3>
       
    37       <ul>
       
    38         <li class="right" style="margin-right: 10px">
       
    39           <a href="genindex.html" title="General Index"
       
    40              accesskey="I">index</a></li>
       
    41         <li class="right" >
       
    42           <a href="py-modindex.html" title="Python Module Index"
       
    43              >modules</a> |</li>
       
    44         <li class="nav-item nav-item-0"><a href="index.html">PyAMS User Guide 0.1.0 documentation</a> &#187;</li> 
       
    45       </ul>
       
    46     </div>  
       
    47 
       
    48     <div class="document">
       
    49       <div class="documentwrapper">
       
    50         <div class="bodywrapper">
       
    51           <div class="body" role="main">
       
    52             
       
    53   <div class="section" id="pyams-utils-protocol-package">
       
    54 <h1>pyams_utils.protocol package<a class="headerlink" href="#pyams-utils-protocol-package" title="Permalink to this headline">¶</a></h1>
       
    55 <div class="section" id="module-pyams_utils.protocol">
       
    56 <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyams_utils.protocol" title="Permalink to this headline">¶</a></h2>
       
    57 </div>
       
    58 <div class="section" id="submodules">
       
    59 <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
       
    60 <div class="section" id="module-pyams_utils.protocol.http">
       
    61 <span id="pyams-utils-protocol-http-module"></span><h3>pyams_utils.protocol.http module<a class="headerlink" href="#module-pyams_utils.protocol.http" title="Permalink to this headline">¶</a></h3>
       
    62 <dl class="class">
       
    63 <dt id="pyams_utils.protocol.http.HTTPClient">
       
    64 <em class="property">class </em><code class="descclassname">pyams_utils.protocol.http.</code><code class="descname">HTTPClient</code><span class="sig-paren">(</span><em>method</em>, <em>protocol</em>, <em>servername</em>, <em>url</em>, <em>params={}</em>, <em>credentials=()</em>, <em>proxy=()</em>, <em>rdns=True</em>, <em>proxy_auth=()</em>, <em>timeout=None</em>, <em>headers={}</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.http.HTTPClient" title="Permalink to this definition">¶</a></dt>
       
    65 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
    66 <p>HTTP client with proxy support</p>
       
    67 <dl class="method">
       
    68 <dt id="pyams_utils.protocol.http.HTTPClient.get_response">
       
    69 <code class="descname">get_response</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.http.HTTPClient.get_response" title="Permalink to this definition">¶</a></dt>
       
    70 <dd><p>Common HTTP request</p>
       
    71 </dd></dl>
       
    72 
       
    73 </dd></dl>
       
    74 
       
    75 <dl class="function">
       
    76 <dt id="pyams_utils.protocol.http.get_client">
       
    77 <code class="descclassname">pyams_utils.protocol.http.</code><code class="descname">get_client</code><span class="sig-paren">(</span><em>method</em>, <em>protocol</em>, <em>servername</em>, <em>url</em>, <em>params={}</em>, <em>credentials=()</em>, <em>proxy=()</em>, <em>rdns=True</em>, <em>proxy_auth=()</em>, <em>timeout=None</em>, <em>headers={}</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.http.get_client" title="Permalink to this definition">¶</a></dt>
       
    78 <dd><p>HTTP client factory</p>
       
    79 </dd></dl>
       
    80 
       
    81 <dl class="function">
       
    82 <dt id="pyams_utils.protocol.http.get_client_from_url">
       
    83 <code class="descclassname">pyams_utils.protocol.http.</code><code class="descname">get_client_from_url</code><span class="sig-paren">(</span><em>url</em>, <em>credentials=()</em>, <em>proxy=()</em>, <em>rdns=True</em>, <em>proxy_auth=()</em>, <em>timeout=None</em>, <em>headers={}</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.http.get_client_from_url" title="Permalink to this definition">¶</a></dt>
       
    84 <dd><p>HTTP client factory from URL</p>
       
    85 </dd></dl>
       
    86 
       
    87 </div>
       
    88 <div class="section" id="module-pyams_utils.protocol.xmlrpc">
       
    89 <span id="pyams-utils-protocol-xmlrpc-module"></span><h3>pyams_utils.protocol.xmlrpc module<a class="headerlink" href="#module-pyams_utils.protocol.xmlrpc" title="Permalink to this headline">¶</a></h3>
       
    90 <dl class="class">
       
    91 <dt id="pyams_utils.protocol.xmlrpc.SecureXMLRPCCookieAuthTransport">
       
    92 <em class="property">class </em><code class="descclassname">pyams_utils.protocol.xmlrpc.</code><code class="descname">SecureXMLRPCCookieAuthTransport</code><span class="sig-paren">(</span><em>user_agent</em>, <em>credentials=()</em>, <em>cookies=None</em>, <em>timeout=&lt;object object&gt;</em>, <em>headers=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.SecureXMLRPCCookieAuthTransport" title="Permalink to this definition">¶</a></dt>
       
    93 <dd><p>Bases: <a class="reference internal" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport" title="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport</span></code></a></p>
       
    94 <p>Secure XML-RPC transport</p>
       
    95 </dd></dl>
       
    96 
       
    97 <dl class="class">
       
    98 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport">
       
    99 <em class="property">class </em><code class="descclassname">pyams_utils.protocol.xmlrpc.</code><code class="descname">XMLRPCCookieAuthTransport</code><span class="sig-paren">(</span><em>user_agent</em>, <em>credentials=()</em>, <em>cookies=None</em>, <em>timeout=&lt;object object&gt;</em>, <em>headers=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport" title="Permalink to this definition">¶</a></dt>
       
   100 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">xmlrpc.client.Transport</span></code></p>
       
   101 <p>An XML-RPC transport handling authentication via cookies</p>
       
   102 <dl class="class">
       
   103 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieRequest">
       
   104 <em class="property">class </em><code class="descname">CookieRequest</code><span class="sig-paren">(</span><em>url</em>, <em>data=None</em>, <em>headers={}</em>, <em>origin_req_host=None</em>, <em>unverifiable=False</em>, <em>method=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieRequest" title="Permalink to this definition">¶</a></dt>
       
   105 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">urllib.request.Request</span></code></p>
       
   106 </dd></dl>
       
   107 
       
   108 <dl class="class">
       
   109 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieResponse">
       
   110 <em class="property">class </em><code class="descname">CookieResponse</code><span class="sig-paren">(</span><em>response</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieResponse" title="Permalink to this definition">¶</a></dt>
       
   111 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
   112 <dl class="method">
       
   113 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieResponse.info">
       
   114 <code class="descname">info</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieResponse.info" title="Permalink to this definition">¶</a></dt>
       
   115 <dd></dd></dl>
       
   116 
       
   117 </dd></dl>
       
   118 
       
   119 <dl class="class">
       
   120 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieResponseHelper">
       
   121 <em class="property">class </em><code class="descname">CookieResponseHelper</code><span class="sig-paren">(</span><em>response</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieResponseHelper" title="Permalink to this definition">¶</a></dt>
       
   122 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
   123 <dl class="method">
       
   124 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieResponseHelper.getheaders">
       
   125 <code class="descname">getheaders</code><span class="sig-paren">(</span><em>header</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.CookieResponseHelper.getheaders" title="Permalink to this definition">¶</a></dt>
       
   126 <dd></dd></dl>
       
   127 
       
   128 </dd></dl>
       
   129 
       
   130 <dl class="method">
       
   131 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.get_response">
       
   132 <code class="descname">get_response</code><span class="sig-paren">(</span><em>connection</em>, <em>host</em>, <em>handler</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.get_response" title="Permalink to this definition">¶</a></dt>
       
   133 <dd></dd></dl>
       
   134 
       
   135 <dl class="method">
       
   136 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.make_connection">
       
   137 <code class="descname">make_connection</code><span class="sig-paren">(</span><em>host</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.make_connection" title="Permalink to this definition">¶</a></dt>
       
   138 <dd></dd></dl>
       
   139 
       
   140 <dl class="method">
       
   141 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.request">
       
   142 <code class="descname">request</code><span class="sig-paren">(</span><em>host</em>, <em>handler</em>, <em>request_body</em>, <em>verbose=False</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.request" title="Permalink to this definition">¶</a></dt>
       
   143 <dd></dd></dl>
       
   144 
       
   145 <dl class="method">
       
   146 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_auth">
       
   147 <code class="descname">send_auth</code><span class="sig-paren">(</span><em>connection</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_auth" title="Permalink to this definition">¶</a></dt>
       
   148 <dd></dd></dl>
       
   149 
       
   150 <dl class="method">
       
   151 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_content_type">
       
   152 <code class="descname">send_content_type</code><span class="sig-paren">(</span><em>connection</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_content_type" title="Permalink to this definition">¶</a></dt>
       
   153 <dd></dd></dl>
       
   154 
       
   155 <dl class="method">
       
   156 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_headers">
       
   157 <code class="descname">send_headers</code><span class="sig-paren">(</span><em>connection</em>, <em>headers</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_headers" title="Permalink to this definition">¶</a></dt>
       
   158 <dd></dd></dl>
       
   159 
       
   160 <dl class="method">
       
   161 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_request">
       
   162 <code class="descname">send_request</code><span class="sig-paren">(</span><em>host</em>, <em>handler</em>, <em>request_body</em>, <em>debug</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_request" title="Permalink to this definition">¶</a></dt>
       
   163 <dd></dd></dl>
       
   164 
       
   165 <dl class="method">
       
   166 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_user_agent">
       
   167 <code class="descname">send_user_agent</code><span class="sig-paren">(</span><em>connection</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.send_user_agent" title="Permalink to this definition">¶</a></dt>
       
   168 <dd></dd></dl>
       
   169 
       
   170 <dl class="attribute">
       
   171 <dt id="pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.verbose">
       
   172 <code class="descname">verbose</code><em class="property"> = False</em><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.XMLRPCCookieAuthTransport.verbose" title="Permalink to this definition">¶</a></dt>
       
   173 <dd></dd></dl>
       
   174 
       
   175 </dd></dl>
       
   176 
       
   177 <dl class="function">
       
   178 <dt id="pyams_utils.protocol.xmlrpc.get_client">
       
   179 <code class="descclassname">pyams_utils.protocol.xmlrpc.</code><code class="descname">get_client</code><span class="sig-paren">(</span><em>uri</em>, <em>credentials=()</em>, <em>verbose=False</em>, <em>allow_none=0</em>, <em>timeout=&lt;object object&gt;</em>, <em>headers=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.get_client" title="Permalink to this definition">¶</a></dt>
       
   180 <dd><p>Get an XML-RPC client which supports basic authentication</p>
       
   181 </dd></dl>
       
   182 
       
   183 <dl class="function">
       
   184 <dt id="pyams_utils.protocol.xmlrpc.get_client_with_cookies">
       
   185 <code class="descclassname">pyams_utils.protocol.xmlrpc.</code><code class="descname">get_client_with_cookies</code><span class="sig-paren">(</span><em>uri</em>, <em>credentials=()</em>, <em>verbose=False</em>, <em>allow_none=0</em>, <em>timeout=&lt;object object&gt;</em>, <em>headers=None</em>, <em>cookies=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_utils.protocol.xmlrpc.get_client_with_cookies" title="Permalink to this definition">¶</a></dt>
       
   186 <dd><p>Get an XML-RPC client which supports authentication through cookies</p>
       
   187 </dd></dl>
       
   188 
       
   189 </div>
       
   190 </div>
       
   191 </div>
       
   192 
       
   193 
       
   194           </div>
       
   195         </div>
       
   196       </div>
       
   197       <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
       
   198         <div class="sphinxsidebarwrapper">
       
   199   <h3><a href="index.html">Table Of Contents</a></h3>
       
   200   <ul>
       
   201 <li><a class="reference internal" href="#">pyams_utils.protocol package</a><ul>
       
   202 <li><a class="reference internal" href="#module-pyams_utils.protocol">Module contents</a></li>
       
   203 <li><a class="reference internal" href="#submodules">Submodules</a><ul>
       
   204 <li><a class="reference internal" href="#module-pyams_utils.protocol.http">pyams_utils.protocol.http module</a></li>
       
   205 <li><a class="reference internal" href="#module-pyams_utils.protocol.xmlrpc">pyams_utils.protocol.xmlrpc module</a></li>
       
   206 </ul>
       
   207 </li>
       
   208 </ul>
       
   209 </li>
       
   210 </ul>
       
   211 
       
   212 <div id="searchbox" style="display: none" role="search">
       
   213   <h3>Quick search</h3>
       
   214     <form class="search" action="search.html" method="get">
       
   215       <div><input type="text" name="q" /></div>
       
   216       <div><input type="submit" value="Go" /></div>
       
   217       <input type="hidden" name="check_keywords" value="yes" />
       
   218       <input type="hidden" name="area" value="default" />
       
   219     </form>
       
   220 </div>
       
   221 <script type="text/javascript">$('#searchbox').show(0);</script>
       
   222         </div>
       
   223       </div>
       
   224       <div class="clearer"></div>
       
   225     </div>
       
   226     <div class="related" role="navigation" aria-label="related navigation">
       
   227       <h3>Navigation</h3>
       
   228       <ul>
       
   229         <li class="right" style="margin-right: 10px">
       
   230           <a href="genindex.html" title="General Index"
       
   231              >index</a></li>
       
   232         <li class="right" >
       
   233           <a href="py-modindex.html" title="Python Module Index"
       
   234              >modules</a> |</li>
       
   235         <li class="nav-item nav-item-0"><a href="index.html">PyAMS User Guide 0.1.0 documentation</a> &#187;</li> 
       
   236       </ul>
       
   237     </div>
       
   238     <div class="footer" role="contentinfo">
       
   239         &#169; Copyright 2017, Thierry Florac.
       
   240       Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.5.
       
   241     </div>
       
   242   </body>
       
   243 </html>