.
D 2017-02-20T15:15:49.338
L api-ahttp
N text/html
P b3368676174415d8fa8083285db4082ec31a25f3
U mario
W 4240
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <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># encoding: UTF-8<br>
# api: streamtuner2<br>
# type: functions<br>
# title: http download / methods<br>
# description: http utility<br>
# version: 1.5<br>
#<br>
# Utility code for HTTP requests, used by all channel plugins.<br>
#<br>
# Provides a http "GET" method, but also does POST and AJAX-<br>
# simulating requests too. Hooks into mains gtk.statusbar().<br>
# And can normalize URLs to always carry a trailing slash<br>
# after the domain name.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </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> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-fix_url"><strong>fix_url</strong></a>(url)</dt><dd><tt>#-- Append missing trailing slash to 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>#-- Retrieve data via HTTP<br>
#<br>
# Well, it says "get", but it actually does POST and AJAXish GET requests too.</tt></dd></dl>
<dl><dt><a name="-progress_feedback"><strong>progress_feedback</strong></a>(*args, **kwargs)</dt><dd><tt># Sets either text or percentage of main windows' status bar.<br>
#<br>
# Can either take a float parameter (e.g. 0.99 for % indicator)<br>
# or text message. Alternatively two parameters to update 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> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </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> = <config.log_printer object><br>
<strong>session</strong> = <requests.sessions.Session object></td></tr></table>
Z e29cfa43535ba23d3b2347a3ddeca831