Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Update of "api-ahttp"

Overview

Artifact ID: b14fa5e21b45e8084281d723f8b810da28ecccef
Page Name:api-ahttp
Date: 2017-02-20 15:15:49
Original User: mario
Mimetype:text/html
Parent: b3368676174415d8fa8083285db4082ec31a25f3 (diff)
Content

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>ahttp</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="streamtuner2/ahttp.py"> streamtuner2/ahttp.py</a></font></td></tr></table>
    <p><tt>#&nbsp;encoding:&nbsp;UTF-8<br>
#&nbsp;api:&nbsp;streamtuner2<br>
#&nbsp;type:&nbsp;functions<br>
#&nbsp;title:&nbsp;http&nbsp;download&nbsp;/&nbsp;methods<br>
#&nbsp;description:&nbsp;http&nbsp;utility<br>
#&nbsp;version:&nbsp;1.5<br>
#<br>
#&nbsp;Utility&nbsp;code&nbsp;for&nbsp;HTTP&nbsp;requests,&nbsp;used&nbsp;by&nbsp;all&nbsp;channel&nbsp;plugins.<br>
#<br>
#&nbsp;Provides&nbsp;a&nbsp;http&nbsp;"GET"&nbsp;method,&nbsp;but&nbsp;also&nbsp;does&nbsp;POST&nbsp;and&nbsp;AJAX-<br>
#&nbsp;simulating&nbsp;requests&nbsp;too.&nbsp;Hooks&nbsp;into&nbsp;mains&nbsp;gtk.statusbar().<br>
#&nbsp;And&nbsp;can&nbsp;normalize&nbsp;URLs&nbsp;to&nbsp;always&nbsp;carry&nbsp;a&nbsp;trailing&nbsp;slash<br>
#&nbsp;after&nbsp;the&nbsp;domain&nbsp;name.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a
href="https://docs.python.org/3/library/requests.html">requests</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-fix_url"><strong>fix_url</strong></a>(url)</dt><dd><tt>#--&nbsp;Append&nbsp;missing&nbsp;trailing&nbsp;slash&nbsp;to&nbsp;URLs</tt></dd></dl>
 <dl><dt><a name="-get"><strong>get</strong></a>(url, params<font color="#909090">={}</font>, referer<font color="#909090">=None</font>, post<font color="#909090">=0</font>, ajax<font color="#909090">=0</font>, binary<font color="#909090">=0</font>, content<font color="#909090">=True</font>, encoding<font color="#909090">=None</font>, verify<font color="#909090">=False</font>, statusmsg<font color="#909090">=None</font>, timeout<font color="#909090">=9.25</font>, quieter<font color="#909090">=0</font>)</dt><dd><tt>#--&nbsp;Retrieve&nbsp;data&nbsp;via&nbsp;HTTP<br>
#<br>
#&nbsp;&nbsp;Well,&nbsp;it&nbsp;says&nbsp;"get",&nbsp;but&nbsp;it&nbsp;actually&nbsp;does&nbsp;POST&nbsp;and&nbsp;AJAXish&nbsp;GET&nbsp;requests&nbsp;too.</tt></dd></dl>
 <dl><dt><a name="-progress_feedback"><strong>progress_feedback</strong></a>(*args, **kwargs)</dt><dd><tt>#&nbsp;Sets&nbsp;either&nbsp;text&nbsp;or&nbsp;percentage&nbsp;of&nbsp;main&nbsp;windows'&nbsp;status&nbsp;bar.<br>
#<br>
#&nbsp;Can&nbsp;either&nbsp;take&nbsp;a&nbsp;float&nbsp;parameter&nbsp;(e.g.&nbsp;0.99&nbsp;for&nbsp;%&nbsp;indicator)<br>
#&nbsp;or&nbsp;text&nbsp;message.&nbsp;Alternatively&nbsp;two&nbsp;parameters&nbsp;to&nbsp;update&nbsp;both.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>conf</strong> = {u'filter_walledgardens': True, u'radionomy_page...e/mario/.config/streamtuner2', u'history': u'20'}<br>
<strong>feedback</strong> = None<br>
<strong>log</strong> = &lt;config.log_printer object&gt;<br>
<strong>session</strong> = &lt;requests.sessions.Session object&gt;</td></tr></table>