aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
Commit message (Collapse)AuthorAgeFilesLines
* release prep: bump versionAldo Cortesi2015-05-181-1/+1
|
* Zap outdated commentAldo Cortesi2015-05-161-3/+1
|
* Add tcp.Reader.safe_read, use it in socks and websocketsAldo Cortesi2015-05-053-45/+51
| | | | | | safe_read is guaranteed to raise or return a byte string of the requested length. It's particularly useful for implementing binary protocols.
* websockets: more flexible masking interface.Aldo Cortesi2015-05-011-3/+8
|
* websockets: A progressive masker.Aldo Cortesi2015-05-011-14/+18
|
* websockets: more compact and legible human_readableAldo Cortesi2015-04-302-25/+38
|
* Add a tiny utility class for keeping bi-directional mappings.Aldo Cortesi2015-04-303-34/+77
| | | | Use it in websocket and socks.
* websockets: nicer frame constructionAldo Cortesi2015-04-241-15/+23
| | | | | | - Resolve unspecified values on instantiation - Add a check for masking key length - Smarter resolution for masking_key and mask values. Do the right thing unless told not to.
* websockets: include all header values in frame roundtripAldo Cortesi2015-04-241-12/+15
|
* websockets: remove validationAldo Cortesi2015-04-241-20/+4
| | | | | | | We don't really need this any more. The interface is much less error prone because bit flags are no longer integers, we have a range check on opcode on header instantiation, and we've deferred length code calculation and so forth into the byte render methods.
* websocket: interface refactoringAldo Cortesi2015-04-242-160/+159
| | | | | | | - Separate out FrameHeader. We need to deal with this separately in many circumstances. - Simpler equality scheme. - Bits are now specified by truthiness - we don't care about the integer value. This means lots of validation is not needed any more.
* websockets: refactor to avoid rundantly specifying payloads and payload lengthsAldo Cortesi2015-04-241-37/+23
|
* websockets: extract frame header creation into a functionAldo Cortesi2015-04-241-120/+143
|
* websockets: handshake checks only take headersAldo Cortesi2015-04-232-10/+10
|
* websockets: (very) slightly nicer is_valid constraintsAldo Cortesi2015-04-211-5/+3
|
* websockets: constants, variable names, refactoringAldo Cortesi2015-04-211-35/+40
|
* Whitespace, interface simplificationAldo Cortesi2015-04-211-15/+2
| | | | | - safe_tobytes doesn't buy us much - move masking key generation inline
* websockets: refactor to use http and header functions in http.pyAldo Cortesi2015-04-212-130/+104
|
* Whitespace, indentation, nounce -> nonceAldo Cortesi2015-04-212-37/+37
|
* Whitespace, pep8, mixed indentationAldo Cortesi2015-04-212-5/+18
|
* Return a named tuple from read_responseAldo Cortesi2015-04-211-3/+15
|
* Migrate requeset reading from mitmproxy to netlibAldo Cortesi2015-04-212-3/+123
|
* fixing test coverage, adding to_file/from_file reader writes to match socks.pyChandler Abraham2015-04-191-28/+34
|
* Websockets: reorganiseAldo Cortesi2015-04-203-82/+1
| | | | | - websockets.py to top-level - implementations into test suite
* Merge branch 'master' of github.com:mitmproxy/netlibMaximilian Hils2015-04-177-19/+736
|\
| * websockets: more whitespace, WebSocketFrame -> FrameAldo Cortesi2015-04-172-57/+55
| |
| * websockets: whitespace, PEP8Aldo Cortesi2015-04-171-73/+96
| |
| * Merge pull request #54 from Chandler/websocketsAldo Cortesi2015-04-174-0/+473
| |\ | | | | | | Netlib WebSockets take 1
| | * 100% test coverage, though still need plenty moreChandler Abraham2015-04-133-27/+6
| | |
| | * handshake tests, serialization testChandler Abraham2015-04-112-21/+49
| | |
| | * small cleanups, working on testsChandler Abraham2015-04-112-23/+22
| | |
| | * netlib websocketsChandler Abraham2015-04-105-0/+467
| | |
| * | Improve flexibility of http_cookies._format_pairsAldo Cortesi2015-04-161-2/+2
| | |
| * | ODict improvementsAldo Cortesi2015-04-152-17/+37
| | | | | | | | | | | | | | | | | | | | | | | | - Setting values now tries to preserve the existing order, rather than just appending to the end. - __repr__ now returns a repr of the tuple list. The old repr becomes a .format() method. This is clearer, makes troubleshooting easier, and doesn't assume all data in ODicts are header-like
| * | odict: don't convert values to strings when addedAldo Cortesi2015-04-141-2/+2
| | |
| * | Add an .extend method for ODictsAldo Cortesi2015-04-141-0/+6
| | |
| * | Remove old-style set-cookie cruft, unit tests to 100%Aldo Cortesi2015-04-141-11/+3
| | |
| * | Firm up cookie parsing and formatting APIAldo Cortesi2015-04-141-29/+83
| | | | | | | | | | | | | | | | | | | | | | | | Make a tough call: we won't support old-style comma-separated set-cookie headers. Real world testing has shown that the latest rfc (6265) is often violated in ways that make the parsing problem indeterminate. Since this is much more common than the old style deprecated set-cookie variant, we focus on the most useful case.
| * | Merge branch 'master' of https://github.com/mitmproxy/netlibAldo Cortesi2015-04-126-23/+27
| |\|
| * | cookies: Cater for special values, fix some bugs found in real-world testingAldo Cortesi2015-04-121-15/+33
| | |
| * | Initial outline of a cookie parsing and serialization module.Aldo Cortesi2015-04-121-0/+133
| | |
* | | fix socket_close on Windows, refs mitmproxy/mitmproxy#527Maximilian Hils2015-04-171-12/+20
| |/ |/|
* | fix code smellMaximilian Hils2015-04-096-21/+21
| |
* | 100% test coverageMaximilian Hils2015-04-091-1/+1
| |
* | fail gracefully if we cannot start a new threadMaximilian Hils2015-04-091-1/+5
|/
* fix tests on WindowsMaximilian Hils2015-03-071-0/+5
|
* clean up cert handling, fix mitmproxy/mitmproxy#472Maximilian Hils2015-03-071-54/+86
|
* make tests more robust, fix coverallsMaximilian Hils2015-02-271-1/+1
|
* 100% test coverage :tada:Maximilian Hils2015-02-272-13/+16
|
* fix #53Maximilian Hils2015-02-271-1/+1
|