aboutsummaryrefslogtreecommitdiffstats
path: root/test/netlib/http
Commit message (Collapse)AuthorAgeFilesLines
* python3: clean up super and __future__Aldo Cortesi2016-10-175-5/+0
|
* python3: clean up class bracketsAldo Cortesi2016-10-175-13/+13
|
* Zap object base classAldo Cortesi2016-10-175-13/+13
|
* test & examples: zap sixAldo Cortesi2016-10-173-15/+3
|
* parse_set_cookie header returns an empty list if no cookies are foundAldo Cortesi2016-09-281-3/+3
| | | | This matches parse_cookie, and is more idiomatic.
* Add tests for comma separated Set-CookiesShadab Zafar2016-09-271-10/+47
|
* Make needed changes in testsShadab Zafar2016-09-271-30/+33
|
* Update cookie testsShadab Zafar2016-09-271-91/+84
| | | | | This is needed since _read_pairs now returns a list of cookies each of which is a list of [name, value] tuples.
* Merge pull request #1564 from mhils/issue-1554Maximilian Hils2016-09-211-0/+5
|\ | | | | Fix Response.make content-length header
| * fix Response.make content-length headerMaximilian Hils2016-09-211-0/+5
| |
* | raise TypeError on invalid header assignment, fix #1562Maximilian Hils2016-09-211-0/+9
|/
* Lint fix - minorarjun234962016-08-311-1/+1
|
* Lint fix - replace testsarjun234962016-08-313-6/+9
|
* Added tests for replace in request,message,headerarjun234962016-08-313-1/+23
|
* introduce Response.make for simple response creationMaximilian Hils2016-08-231-0/+20
|
* Use test times less than 2038Shadab Zafar2016-08-151-3/+3
| | | | So that tests pass on 32bit systems too
* Assert cookie groups explicitly rather than just the lengthShadab Zafar2016-08-151-16/+40
|
* Add some cookie formatting related testsShadab Zafar2016-08-151-3/+3
|
* Add a function to get cookie expiration timeShadab Zafar2016-08-151-0/+20
|
* Add method to group pairs by cookiesShadab Zafar2016-08-151-0/+20
|
* add quote/unquote testsMaximilian Hils2016-07-241-2/+42
|
* remove content caching in netlib.http.MessageMaximilian Hils2016-07-231-33/+0
|
* fix content view cache invalidationMaximilian Hils2016-07-211-4/+0
|
* Fix netlib.utils.is_valid_hostAldo Cortesi2016-07-211-0/+9
| | | | | | | | - Don't crash when passed an empty string. This translated into an actual core crash, discovered while fuzzing with afl. - Taking a slice of length one out of bytes returns an integer, so the check for trailing period in this function never worked on Python3. - Add unit tests.
* fix-1366Thomas Kriechbaumer2016-07-161-4/+22
|
* preserve content-type parameter orderMaximilian Hils2016-07-151-1/+3
|
* Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-154-8/+29
|\
| * Test cookies.is_expired separatelyShadab Zafar2016-07-101-0/+21
| |
| * py3++Maximilian Hils2016-07-072-3/+3
| |
| * py3++Maximilian Hils2016-07-071-4/+4
| |
* | improve message content semanticsMaximilian Hils2016-07-152-13/+73
| |
* | raise ValueError if content-encoding is invalidMaximilian Hils2016-07-041-8/+10
| |
* | tests++Maximilian Hils2016-07-021-1/+43
| |
* | message.content -> .raw_content, implement .textMaximilian Hils2016-07-021-33/+84
|/ | | | | | | | | | | | | | | 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.
* move custom HTTP/2 stack from netlib to pathodThomas Kriechbaumer2016-06-172-544/+1
|
* Use handlers in http2 test suiteAldo Cortesi2016-06-141-100/+100
|
* be more strict about module namespacesMaximilian Hils2016-05-311-2/+1
|
* http2.frame -> http2.framereaderAldo Cortesi2016-05-311-3/+3
|
* Fix test failuresAldo Cortesi2016-05-311-1/+1
|
* Satisfy flake8Aldo Cortesi2016-05-312-0/+2
|
* utils.multipartdecode -> http.multipart.decodeAldo Cortesi2016-05-312-0/+33
| | | | | | also utils.parse_content_type -> http.headers.parse_content_type
* netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokensAldo Cortesi2016-05-311-1/+12
| | | | Placing this next to its only use.
* Module is part of the name - url.decode, not url.urldecodeAldo Cortesi2016-05-311-20/+20
| | | | 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-311-0/+65
|
* Start cleaning up netlib.utilsAldo Cortesi2016-05-311-13/+13
| | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes
* Improve handling of pseudo-headersAldo Cortesi2016-05-311-1/+4
| | | | | | | | | - 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.
* fix headers orderThomas Kriechbaumer2016-05-291-1/+1
|
* more style cleanupThomas Kriechbaumer2016-05-293-3/+4
|
* more style cleanupThomas Kriechbaumer2016-05-293-14/+19
| | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test
* fix testsMaximilian Hils2016-05-283-4/+4
|