1. 29 7月, 2021 1 次提交
  2. 27 7月, 2021 2 次提交
  3. 21 7月, 2021 1 次提交
  4. 16 7月, 2021 1 次提交
  5. 15 7月, 2021 1 次提交
  6. 07 7月, 2021 1 次提交
    • I
      Add internal support for file-like object responses to improve adapter plugin support (#1094) · 147a066d
      Ilya Sukhanov 提交于
      * Support `requests.response.raw` being a file-like object
      
      Previously HTTPie relied on `requests.models.Response.raw` being
      `urllib3.HTTPResponse`. The `requests` documentation specifies that
      (requests.models.Response.raw)[https://docs.python-requests.org/en/master/api/#requests.Response.raw]
      is a file-like object but allows for other types for internal use.
      
      This change introduces graceful handling for scenarios when
      `requests.models.Response.raw` is not `urllib3.HTTPResponse`. In such a scenario
      HTTPie now falls back to extracting metadata from `requests.models.Response`
      directly instead of direct access from protected protected members such as
      `response.raw._original_response`. A side effect in this fallback procedure is
      that we can no longer determine HTTP protocol version and report it as `1.1`.
      
      This change is necessary to make it possible to implement `TransportPlugins`
      without having to also needing to emulate internal behavior of `urlib3` and
      `http.client`.
      
      * Load cookies from `response.headers` instead of `response.raw._original_response.msg._headers`
      
      `response.cookies` was not utilized as it not possible to construct original
      payload from `http.cookiejar.Cookie`. Data is stored in lossy format. For example
      `Cookie.secure` defaults to `False` so we cannot distinguish if `Cookie.secure` was
      set to `False` or was not set at all. Same problem applies to other fields also.
      
      * Simpler HTTP envelope data extraction
      
      * Test cookie extraction and make cookie presentment backwards compatible
      Co-authored-by: NMickaël Schoentgen <contact@tiger-222.fr>
      Co-authored-by: NJakub Roztocil <jakub@roztocil.co>
      147a066d
  7. 02 7月, 2021 2 次提交
  8. 01 7月, 2021 1 次提交
  9. 28 6月, 2021 3 次提交
  10. 26 6月, 2021 2 次提交
  11. 15 6月, 2021 5 次提交
  12. 12 6月, 2021 2 次提交
  13. 09 6月, 2021 3 次提交
  14. 02 6月, 2021 1 次提交
  15. 01 6月, 2021 1 次提交
  16. 31 5月, 2021 1 次提交
  17. 29 5月, 2021 1 次提交
  18. 28 5月, 2021 8 次提交
  19. 27 5月, 2021 2 次提交
    • M
      pytest: Add hidden files to norecursedirs (#1071) · 0e556ec3
      Miro Hrončok 提交于
      The default value already contains this,
      but when setting a custom one, it was overridden.
      
      In Fedora, we build the package in `.pyproject-builddir` and not ignoring it confuses pytest:
      
          _pytest.pathlib.ImportPathMismatchError: ('httpie.__main__', '/builddir/build/BUILD/httpie-2.4.0/.pyproject-builddir/pip-req-build-aedma65c/build/lib/httpie/__main__.py', PosixPath('/builddir/build/BUILD/httpie-2.4.0/.pyproject-builddir/pip-req-build-aedma65c/httpie/__main__.py'))
      0e556ec3
    • M
      Polish Python 2 removal (#1070) · 464b5b4c
      Mickaël Schoentgen 提交于
      464b5b4c
  20. 26 5月, 2021 1 次提交