b.t.h.__init__ : module documentation

Part of bzrlib.transport.http

Base implementation of Transport over http.

There are separate implementation modules for each http client implementation.

Function extract_auth Extract auth parameters from am HTTP/HTTPS url and add them to the given
Class HttpTransportBase Base class for http implementations.
Class SmartClientHTTPMedium No class docstring; 2/7 methods documented
Class SmartClientHTTPMediumRequest A SmartClientMediumRequest that works with an HTTP medium.
Function unhtml_roughly Very approximate html->text translation, for presenting error bodies.
def extract_auth(url, password_manager):
Extract auth parameters from am HTTP/HTTPS url and add them to the given password manager. Return the url, minus those auth parameters (which confuse urllib2).
def unhtml_roughly(maybe_html, length_limit=1000):

Very approximate html->text translation, for presenting error bodies.

>>> unhtml_roughly("<b>bad</b> things happened\n")
' bad  things happened '
Parameterslength_limitTruncate the result to this many characters.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.