b.t.http : package documentation

Part of bzrlib.transport

Base implementation of Transport over http.

There are separate implementation modules for each http client implementation.

Module ca_bundle Auto-detect of CA bundle for SSL connections
Module response Handlers for HTTP Responses.
Module wsgi WSGI application for bzr HTTP smart server.
Module _pycurl http/https transport using pycurl
Module _urllib No module docstring; 1/1 classes, 1/1 functions documented
Module _urllib2_wrappers Implementaion of urllib2 tailored to bzr needs

From the __init__.py module:

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 extract_auth Extract auth parameters from am HTTP/HTTPS url and add them to the given
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 2019-10-19 00:33:24.