aboutsummaryrefslogtreecommitdiffstats
path: root/test/netlib/http
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* cleanup imports with flake8Thomas Kriechbaumer2016-05-284-6/+2
|
* Clean un-needed importsAldo Cortesi2016-05-211-2/+0
|
* tests++Maximilian Hils2016-05-201-98/+1
|
* improve MultiDict, add ImmutableMultiDict, adjust response.cookiesMaximilian Hils2016-05-183-24/+26
|
* add MultiDictMaximilian Hils2016-05-186-46/+45
| | | | | | | | 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.
* Merge pull request #1121 from Kriechi/fix-cookiesThomas Kriechbaumer2016-05-113-4/+13
|\ | | | | improve cookie parsing
| * improve cookie parsingThomas Kriechbaumer2016-05-103-4/+13
| | | | | | | | | | allows '/' to be within a cookie name removes deprecated cookie getter/setter fixes #1118
* | actually fix testsMaximilian Hils2016-05-101-2/+2
| |
* | Revert "fix tests"Maximilian Hils2016-05-101-2/+2
| | | | | | | | This reverts commit f315dc1eb9f4701548fd57bbb38de1e9caa34e40.
* | fix testsMaximilian Hils2016-05-101-2/+2
|/
* fix #1120Maximilian Hils2016-05-091-0/+12
|
* Merge branch 'better-replace'Maximilian Hils2016-04-031-0/+19
|\
| * improve .replace() and move it into netlibMaximilian Hils2016-04-021-0/+19
| |
* | Merge pull request #1074 from mitmproxy/move-response-refreshThomas Kriechbaumer2016-04-032-0/+39
|\ \ | | | | | | move HTTPResponse.refresh into netlib
| * | move HTTPResponse.refresh into netlibMaximilian Hils2016-04-022-0/+39
| |/
* | Merge pull request #1073 from mitmproxy/first-line-formatThomas Kriechbaumer2016-04-031-6/+6
|\ \ | | | | | | form_(in|out) -> first_line_format
| * | form_(in|out) -> first_line_formatMaximilian Hils2016-04-021-6/+6
| |/
* / response.msg -> response.reasonMaximilian Hils2016-04-021-2/+2
|/
* replace CONTENT_MISSING with None.Matthew Shao2016-03-261-3/+3
|
* netlib: request.path can be NoneMaximilian Hils2016-03-201-1/+6
|
* Fixup more testsShadab Zafar2016-02-181-4/+7
|
* Use host header values only when the ports matchShadab Zafar2016-02-181-2/+6
|
* Handle port numbers in host headerShadab Zafar2016-02-171-0/+4
| | | | from: https://github.com/mitmproxy/netlib/pull/121
* move tservers helperThomas Kriechbaumer2016-02-161-1/+2
|
* Fix failing unit tests caused by a69d223bWill Coster2016-02-151-4/+4
|
* Merge branch 'master' of https://github.com/mitmproxy/mitmproxyMaximilian Hils2016-02-161-2/+7
|\
| * Preserve host header when modifying request pathWill Coster2016-02-151-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently the path_components and query setters of the Request object use the url setter under the hood. The url setter updates all parts of the URL including the host. If the host header and the host in the request URL are different (as is common when making HTTPS requests) then the host header will be updated to the value in the URL as a result of modifying the path. This change fixes this problem by modifying the query and path_components setters to not use the url setter and instead directly update the path field.
* | temporarily silence flaky testsMaximilian Hils2016-02-161-2/+2
|/
* fix ALPN checksMaximilian Hils2016-02-151-2/+2
|
* move tests into shared folderMaximilian Hils2016-02-1514-0/+1972