aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Move version check to netlib, unit test it.Aldo Cortesi2015-05-311-0/+49
|/
* Adjust pep8 parameters, reformatAldo Cortesi2015-05-308-117/+236
|
* cleanup importsThomas Kriechbaumer2015-05-291-1/+0
|
* add HTTP/2-capable clientThomas Kriechbaumer2015-05-291-0/+65
|
* add ALPN support to TCP abstractionThomas Kriechbaumer2015-05-292-9/+29
|
* add generic frame parsing methodThomas Kriechbaumer2015-05-291-0/+17
|
* add hpack to encode and decode headersThomas Kriechbaumer2015-05-291-9/+32
|
* fix default argumentThomas Kriechbaumer2015-05-291-1/+5
| | | | | Python evaluates default args during method definition. So you get the same dict each time you call this method. Therefore the dict is the SAME actual object each time.
* add human_readable() to each frame for debuggingThomas Kriechbaumer2015-05-291-1/+74
|
* Satisfy autobots.Aldo Cortesi2015-05-281-1/+2
|
* Merge branch 'Kriechi-cleanup'Aldo Cortesi2015-05-2814-242/+322
|\
| * cleanup code with autoflakeThomas Kriechbaumer2015-05-275-14/+1
| | | | | | | | run the following command: $ autoflake -r -i --remove-all-unused-imports --remove-unused-variables .
| * cleanup code with autopep8Thomas Kriechbaumer2015-05-2714-229/+308
| | | | | | | | run the following command: $ autopep8 -i -r -a -a .
* | update TLS defaults: signature hash and DH paramsThomas Kriechbaumer2015-05-271-11/+21
|/ | | | | * SHA1 is deprecated (use SHA256) * increase RSA key to 2048 bits * increase DH params to 4096 bits (LogJam attack)
* remove outdated workaroundsThomas Kriechbaumer2015-05-271-8/+4
|
* Merge pull request #56 from Kriechi/http2-framesAldo Cortesi2015-05-273-0/+401
|\ | | | | implement basic HTTP/2 frame classes
| * implement basic HTTP/2 frame classesThomas Kriechbaumer2015-05-263-0/+401
| |
* | Post release version bump.Aldo Cortesi2015-05-261-1/+1
|/
* improve displaying tcp addressesMaximilian Hils2015-05-181-1/+4
|
* 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
| | |