fault.web

fault download client.

HTTP client designed for downloading resources to the current working directory.

Engineering

The download client is rather limited in its capacity. The intention of this program is to provide a robust HTTP client for retrieving resources and storing them in the local file system.

Host Scanning in case of 404

404 errors do not cause the client to check the other hosts.

Parallel Downloads

Only one transfer per-process is supported.

sys
import

os
import

functools
import

itertools
import

collections
import

files
import

process
import

network
import

timetypes
import

ri
import

kcore
import

kdispatch
import

kflows
import

kio
import

http
import

agent
import

ksecurity
import

redirect_limit
data

redirect_limit = 4

Download
class

Downloaddl_monitor
data

dl_monitor = None

Downloaddl_tls
data

dl_tls = None

Downloaddl_content_length
data

dl_content_length = None

Downloaddl_identities
data

dl_identities = None

Downloaddl_redirected
data

dl_redirected = False

Download_dl_xfer
data

_dl_xfer = None

Download_dl_last_status
data

_dl_last_status = 0

Download__init__
method

__init__(self, status, output, depth, endpoint)

Download_force_quit
method

_force_quit(self)

Downloadterminate
method

terminate(self)

Downloaddl_response_collected
method

dl_response_collected(self)

Downloadxact_void
method

xact_void(self, final)

Downloaddl_request
method

dl_request(self, struct)

Downloaddl_status
method

dl_status(self)

Downloaddl_response_endpoint
method

dl_response_endpoint(self, invp)

Downloaddl_dispatch
method

dl_dispatch(self, struct, endpoint)

Downloadactuate
method

actuate(self)

main
function
process.Exit

main(inv)