aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Extract url functions from netlib.utils and move to netlib.http.urlAldo Cortesi2016-05-315-107/+109
|
* Start cleaning up netlib.utilsAldo Cortesi2016-05-3110-102/+103
| | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes
* Improve handling of pseudo-headersAldo Cortesi2016-05-312-6/+16
| | | | | | | | | - The canonical source for :method, :scheme and :path are the .method, .scheme and .path attributes on the request object. - These pseudo-headers are stripped after reading the request, and re-inserted just before sending. - The :authority header remains, and should be handled analagously to the Host header in HTTP1 with respect to display and user interaction.
* Satisfy flake8Aldo Cortesi2016-05-301-5/+0
|
* fix bytes vs. strThomas Kriechbaumer2016-05-291-2/+2
|
* fix headers orderThomas Kriechbaumer2016-05-291-2/+2
|
* raise a more verbose errorThomas Kriechbaumer2016-05-291-3/+3
|
* more style cleanupThomas Kriechbaumer2016-05-293-5/+14
|
* more style cleanupThomas Kriechbaumer2016-05-291-2/+2
| | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test
* Merge pull request #1172 from cortesi/solidcoreAldo Cortesi2016-05-291-1/+1
|\ | | | | First steps to solidifying the core
| * Merge branch 'master' into solidcoreAldo Cortesi2016-05-2913-40/+44
| |\
| * \ Merge branch 'master' into solidcoreAldo Cortesi2016-05-281-1/+3
| |\ \
| * | | Sketch out a more solid coreAldo Cortesi2016-05-281-1/+1
| | | | | | | | | | | | | | | | | | | | - Decorator for handler methods - Stricter checking for double-acks and non-acks
* | | | fix testsMaximilian Hils2016-05-283-3/+3
| | | |
* | | | minor improvementsMaximilian Hils2016-05-281-4/+4
| |_|/ |/| |
* | | netlib: fix most flake8 offensesThomas Kriechbaumer2016-05-2810-31/+43
| | |
* | | cleanup imports with flake8Thomas Kriechbaumer2016-05-288-10/+2
| |/ |/|
* | Fix crash in mitmproxy when viewing responsesAldo Cortesi2016-05-281-1/+3
|/
* fix py3 testsMaximilian Hils2016-05-251-1/+1
|
* bytes_to_escaped_str: always escape single quotesMaximilian Hils2016-05-251-1/+7
|
* escaped_str_to_bytes: support unicode on python 2Maximilian Hils2016-05-251-1/+5
|
* Merge branch 'issue-1099'Maximilian Hils2016-05-202-0/+9
|\
| * fix #1099Maximilian Hils2016-05-202-0/+9
| |
* | A clearer implementation of MultiDictViewAldo Cortesi2016-05-215-106/+95
| | | | | | | | | | | | This makes MultiDictView work with a simple getter/setter pair, rather than using attributes with implicit leading underscores. Also move MultiDictView into multidict.py and adds some simple unit tests.
* | Merge branch 'multidict' of https://github.com/mhils/mitmproxy into ↵Aldo Cortesi2016-05-2111-214/+487
|\| | | | | | | mhils-multidict
| * tests++Maximilian Hils2016-05-203-6/+14
| |
| * fix Header docsMaximilian Hils2016-05-201-3/+3
| |
| * improve MultiDict, add ImmutableMultiDict, adjust response.cookiesMaximilian Hils2016-05-187-250/+363
| |
| * add MultiDictMaximilian Hils2016-05-1810-148/+300
| | | | | | | | | | | | | | | | This commit introduces MultiDict, a multi-dictionary similar to ODict, but with improved semantics (as in the Headers class). MultiDict fixes a few issues that were present in the Request/Response API. In particular, `request.cookies["foo"] = "bar"` has previously been a no-op, as the cookies property returned a mutable _copy_ of the cookies.
* | clean up odictMaximilian Hils2016-05-181-47/+34
|/
* Sanitize Print (#1135)Maximilian Hils2016-05-121-0/+28
| | | | | | | | * sanitize strings with shell control characters * netlib: add utilities to safe-print bytes * escaped str: add TODO for multi-byte chars
* replace SimpleCookie with our own parser libThomas Kriechbaumer2016-05-111-1/+1
|
* improve cookie parsingThomas Kriechbaumer2016-05-103-37/+20
| | | | | allows '/' to be within a cookie name removes deprecated cookie getter/setter fixes #1118
* fix #1120Maximilian Hils2016-05-092-1/+3
|