aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
Commit message (Collapse)AuthorAgeFilesLines
* message.content -> .raw_content, implement .textMaximilian Hils2016-07-025-100/+202
| | | | | | | | | | | | | | | This PR improves our handling of HTTP message body encodings: - The unaltered message body is now accessible as `.raw_content` - The "content-encoding"-decoded content (i.e. gzip removed) content is not `.content`, as this is what we want in 99% of the cases. - `.text` now provides the "content-encoding"-decoded and then "content-type charset"-decoded message body. - The decoded values for `.content` and `.text` are cached, so that repeated access and `x.text = x.text` is cheap. - The `decoded()` decorator is now deprecated, as we can now just use `.content`. Similarly `HTTPMessage.get_decoded_content()` is deprecated.
* minor fixesMaximilian Hils2016-07-011-1/+1
|
* fix tcp message handlingMaximilian Hils2016-07-012-4/+7
|
* py3++Maximilian Hils2016-07-014-17/+17
|
* Handle case when scheme is NoneShadab Zafar2016-07-011-1/+1
|
* http2: improve error handling in testsThomas Kriechbaumer2016-06-221-1/+2
|
* move custom HTTP/2 stack from netlib to pathodThomas Kriechbaumer2016-06-172-434/+0
|
* Py3: websocketsShadab Zafar2016-06-151-2/+2
|
* Py3: fix http2 bytes issueShadab Zafar2016-06-151-2/+2
|
* Merge pull request #1253 from mhils/fix-debugAldo Cortesi2016-06-141-3/+5
|\ | | | | Fix Debug Mode on Windows
| * fix debug mode on WindowsMaximilian Hils2016-06-131-3/+5
| |
* | Start rolling out leak detection in netlibAldo Cortesi2016-06-142-0/+15
|/
* Merge branch 'master' into appveyorAldo Cortesi2016-06-121-2/+2
|\
| * Fold mitmproxy.version and pathod.version into netlib.versionAldo Cortesi2016-06-121-2/+2
| |
* | Make the tcp connection closer cancellableAldo Cortesi2016-06-121-9/+21
|/ | | | And use this to make pathoc error handling more sophisticated
* Satisfy lintAldo Cortesi2016-06-111-1/+5
|
* debug: On SIGUSR2, we dump tracebacks for all threads to screenAldo Cortesi2016-06-111-1/+15
|
* Zap stray semicolonAldo Cortesi2016-06-111-1/+1
|
* debug: num_fds is posix-onlyAldo Cortesi2016-06-111-1/+2
|
* debug: add OpenSSLAldo Cortesi2016-06-111-0/+3
|
* debug: verison -> versionAldo Cortesi2016-06-111-1/+1
| | | | @resam blew our sponsorship - t-mobile is up next
* Improve debugging of thread and other leaksAldo Cortesi2016-06-113-17/+86
| | | | | | | - Add basethread.BaseThread that all threads outside of test suites should use - Add a signal handler to mitmproxy, mitmdump and mitmweb that dumps resource information to screen when SIGUSR1 is received. - Improve thread naming throughout to make thread dumps understandable
* debug.sysinfo: tests and coverageAldo Cortesi2016-06-111-6/+9
|
* Add a --sysinfo flag to all daemonsAldo Cortesi2016-06-111-0/+26
| | | | | This dumps all the platform information and mitmproxy version data we'd normally need to troubleshoot an issue.
* Remove odictAldo Cortesi2016-06-093-174/+13
| | | | | | | | - Adds default implementations for _kconv and _reduce_values to MultiDict. Without these, operations fail in really, really non-obvious ways. - Replace the remaining few instances of ODict Fixes #1159
* tests++Maximilian Hils2016-06-071-7/+1
|
* Utils cleanupsAldo Cortesi2016-06-074-18/+30
| | | | | | | | - Move more stuff that belongs in netlib.human - Move some stuff to near the only use - Zap mitmproxy.utils.timestamp(). I see the rationale, but we used it interchangeably with time.time() throughout the project. Since time.time() dominates in the codebase and timestamp() is such low utility, away it goes.
* minor fixesMaximilian Hils2016-06-062-5/+5
|
* netlib: always disconnect when using context managerMaximilian Hils2016-06-061-2/+4
|
* Now keeps header capitalizationredfast002016-06-051-1/+1
|
* Fix test that may fail due to binary header dataAldo Cortesi2016-06-051-1/+3
| | | | | | | | This is just inherently not a determinisitc test. We don't use the log HTTP interface any more, so it can just go. A more radical "solution" is inbound shortly. Fixes #1207
* More explicit name for the tcp.Server handler counterAldo Cortesi2016-06-031-2/+2
|
* Make tcp.Client.connect return a context manager that closes the connectionAldo Cortesi2016-06-031-0/+8
|
* Implement a service connection handler counter, use it in Pathod test suiteAldo Cortesi2016-06-031-7/+28
| | | | Lots of failures, but that's a good thing.
* Shift a bunch more string-related functions to strutilsAldo Cortesi2016-06-022-15/+51
|
* Utils reorganisation: add netlib.strutilsAldo Cortesi2016-06-028-122/+128
| | | | Extract a number of string and format-related functions to netlib.strutils.
* Fix non-deterministic test failures in exportAldo Cortesi2016-06-021-6/+18
| | | | | We had various places in the code where we relied on incidental order of dict keys. Add a helper to multidict, and fix.
* Merge pull request #1183 from mitmproxy/module-importsAldo Cortesi2016-06-011-1/+3
|\ | | | | use module-level imports only
| * use module-level imports onlyMaximilian Hils2016-05-311-1/+3
| |
* | Reorganise netlib imports according to Google Style GuideAldo Cortesi2016-06-0121-170/+172
|/
* be more strict about module namespacesMaximilian Hils2016-05-311-4/+4
|
* Fix tests harderAldo Cortesi2016-05-311-2/+2
|
* http2.frame -> http2.framereaderAldo Cortesi2016-05-311-0/+0
|
* Satisfy flake8Aldo Cortesi2016-05-315-2/+5
|
* Unify and make symmetric pretty_size and parse_sizeAldo Cortesi2016-05-311-17/+16
|
* Move human-friendly format functions to netlib.human, remove redundant ↵Aldo Cortesi2016-05-314-19/+55
| | | | implementations
* utils.multipartdecode -> http.multipart.decodeAldo Cortesi2016-05-314-57/+61
| | | | | | also utils.parse_content_type -> http.headers.parse_content_type
* netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokensAldo Cortesi2016-05-312-13/+13
| | | | Placing this next to its only use.
* isascii is unusedAldo Cortesi2016-05-311-8/+0
|
* Module is part of the name - url.decode, not url.urldecodeAldo Cortesi2016-05-314-15/+15
| | | | A pattern we need to use far more often in the codebase