Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Fix cookies problem #393

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
6b15241
Prepare for next release cycle.
Lukasa Sep 27, 2016
506d5fe
Update cert bundle.
Lukasa Sep 27, 2016
50bf994
Merge pull request #284 from Lukasa/update-cert-bundle
Lukasa Sep 27, 2016
cc033e1
Use HTTPS for quickstart example.
Lukasa Sep 28, 2016
12e67a4
Merge pull request #287 from Lukasa/issue/286
Lukasa Sep 28, 2016
fdf698e
Pin out hyper-h2 2.5.0.
Lukasa Dec 2, 2016
3041301
Skip import tests on wrong platforms.
Lukasa Dec 2, 2016
3475cc2
Extra space for flake8
Lukasa Dec 2, 2016
1f8e53f
Merge pull request #297 from Lukasa/fixup-tests
Lukasa Dec 2, 2016
e76f185
adding HTTP version flags to connections and responses
nateprewitt Dec 2, 2016
f91f2ca
Stop installing/testing nghttp2.
Lukasa Dec 7, 2016
cced203
Don't pass tests if coverage succeeds but tests fail.
Lukasa Dec 7, 2016
654d4a4
Installable is good.
Lukasa Dec 7, 2016
b7d7a84
Merge pull request #298 from Lukasa/better-testing
Lukasa Dec 7, 2016
bdcf38e
adding itegration tests for HTTPConnection
nateprewitt Dec 5, 2016
80ecee4
Merge pull request #296 from nateprewitt/285
Lukasa Dec 7, 2016
2cdc92f
Fix test_adapter_received_values and test_adapter_sending_values for …
laike9m Jan 17, 2017
f8a84cf
Merge pull request #302 from laike9m/development
Lukasa Jan 17, 2017
e8d4034
Removed unnecessary size check #300
laike9m Jan 18, 2017
08dd74d
Merge pull request #303 from laike9m/development
Lukasa Jan 18, 2017
5e133b6
More informative error message if no protocol found for http2
ojii Jan 24, 2017
28bfaba
Merge pull request #305 from ojii/more-helpful-error-message
Lukasa Jan 24, 2017
7aa17fd
Add ENABLE_PUSH flag in the Upgrade HTTP2-Settings header
hkwi Feb 23, 2017
085975f
fix test synchronization
hkwi Feb 23, 2017
a974eec
update test
hkwi Feb 23, 2017
8089d97
revert autopep8 blank lines
hkwi Feb 23, 2017
3a02fe1
fix socket.recv usage
hkwi Feb 23, 2017
04f3266
Merge pull request #311 from hkwi/push_setting_in_upgrade2
Lukasa Feb 24, 2017
cb49fef
Fix upgrading to h2c
vfaronov Mar 4, 2017
2453eb3
Document how to override certificate verification
vfaronov Mar 4, 2017
c6ae836
Prefer PROTOCOL_SSLv23 to PROTOCOL_TLSv1_2.
Lukasa Mar 4, 2017
cbee16c
Merge branch 'vfaronov-docs-ssl-context' into development
Lukasa Mar 4, 2017
8a95ad6
Merge pull request #313 from vfaronov/fix-upgrade-h2c
Lukasa Mar 4, 2017
12d0941
Fix the documentation on overriding the SSL context
vfaronov Mar 5, 2017
6f464ae
Merge pull request #316 from vfaronov/fix-ssl-context-docs
Lukasa Mar 5, 2017
6ef89c3
Updates README.rst with svg badge
sobolevn Apr 14, 2017
8c375ea
Merge pull request #319 from sobolevn/patch-1
Lukasa Apr 14, 2017
b033641
Add tests for requests adapter `verify` option
KostyaEsmukov May 6, 2017
c4f8a89
Respect requests adapter `verify` option
KostyaEsmukov May 6, 2017
acc6f20
Merge pull request #321 from KostyaEsmukov/requests_adapter_respect_v…
Lukasa May 24, 2017
ba65163
Fixed case, where "reason" absent
May 29, 2017
8d64797
Added test-case "response with empty reason"
May 29, 2017
0697c07
Fixed according to PEP (79 chars)
May 29, 2017
f2070e9
Removed spaces at blank lines
May 29, 2017
c5367d2
Fixed using str instead of bytes
May 29, 2017
a690458
Fixed status-line
May 30, 2017
ed270c0
Fixed line continuation according to PEP
May 30, 2017
496f3a0
Merge pull request #325 from ex3me0/development
Lukasa May 30, 2017
fa238d8
Add HTTPS proxy support
KostyaEsmukov May 6, 2017
87d10bb
Check HTTP11 socket is initialized before closing
Jun 6, 2017
88da7c3
Merge pull request #326 from obrown/development
Lukasa Jun 7, 2017
0e2fca8
Using single lock model in http20 connection
plucury Nov 16, 2016
23a1555
Merge pull request #280 from plucury/development
Lukasa Jun 10, 2017
35fec8d
Force pytest to 2.7
Jun 14, 2017
0af177d
Merge pull request #329 from lawnmowerlatte/development
Lukasa Jun 14, 2017
2223f0d
Merge remote-tracking branch 'upstream/development' into secure_proxy
KostyaEsmukov Jun 21, 2017
185254b
Merge pull request #322 from KostyaEsmukov/secure_proxy
Lukasa Jun 21, 2017
8345852
Convert headers to strings in HTTP20Adapter to fix #324 (#335)
KOLANICH Jul 5, 2017
e118dad
Added a dictionary of decompressors (#336)
KOLANICH Jul 5, 2017
021af18
Unvendor rfc3986 (#341)
KostyaEsmukov Jul 21, 2017
75f25f7
Add connection/read timeout for requests adapter (#342)
hyxbiao Jul 27, 2017
669253f
HTTP20Adapter.close tests (supersedes #307) (#344)
KostyaEsmukov Jul 31, 2017
1509cbc
Add python 3.6 to the test suite
KostyaEsmukov Sep 2, 2017
64cbab6
Fix failing build with pypy on Travis
KostyaEsmukov Sep 2, 2017
0dc6f13
Require pytest>=3.0 (pypy fails with 2.9)
KostyaEsmukov Sep 2, 2017
13e2a90
Merge pull request #348 from KostyaEsmukov/pr/py36_tests
Lukasa Sep 2, 2017
902a227
fix new failing flake checks in CI
matjazp Nov 2, 2017
f1a5fa9
move flake ignore error comment to the proper line
matjazp Nov 2, 2017
86642e6
Merge pull request #360 from matjazp/fix-flake
Lukasa Nov 2, 2017
0ecc4b1
fix zlib_compressobj wbit
johejo Nov 4, 2017
9610ed5
Merge pull request #361 from johejo/fix/zlib_compressobj_wbits
Lukasa Nov 4, 2017
3e52e91
Fix: no end of the stream when (length of body) % MAX_CHUNK == MAX_CHUNK
PrimozGodec Oct 26, 2017
a8109c3
Merge pull request #356 from PrimozGodec/last-chunk-fix
Lukasa Nov 8, 2017
89adc74
Change the address of sample code.
johejo Nov 10, 2017
c4d8494
fix test_release (http2bin to nghttp2.org/httpbin)
johejo Nov 10, 2017
55f7ec9
Merge pull request #365 from johejo/issue#363_fix_address
Lukasa Nov 10, 2017
5579103
fix HEAD request body length
johejo Nov 10, 2017
cff5c3f
Add test function for length of the HTTP/1.1 response-body.
johejo Nov 11, 2017
a3dd27b
fix some error
johejo Nov 11, 2017
9fa200a
fix HTTP/1.1 response body length
johejo Nov 11, 2017
d293a34
fix HTTP/1.1 response body length
johejo Nov 11, 2017
0ac3471
Merge pull request #366 from johejo/fix_http11_head_response
Lukasa Nov 14, 2017
4f86b47
Fix crash on getting unsupported content-encoding
viranch Nov 29, 2017
1026313
Add support for brotli compression
viranch Nov 29, 2017
98d9e5f
Merge pull request #367 from viranch/invalid-compression
Lukasa Nov 29, 2017
4b522f5
Merge pull request #368 from viranch/brotli
Lukasa Nov 29, 2017
d5a9a43
Add a fix to make it possible to add window_manager to HTTP20Adapter.
johejo Dec 12, 2017
18b629b
Merge pull request #370 from johejo/window_manager
Lukasa Dec 17, 2017
b77e758
goodbye
Kriechi Jan 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ omit =
hyper/compat.py
hyper/httplib_compat.py
hyper/ssl_compat.py
hyper/packages/*

[report]
fail_under = 100
Expand Down
19 changes: 3 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,23 @@ python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy-5.3.1"

env:
- TEST_RELEASE=false HYPER_FAST_PARSE=false
- TEST_RELEASE=false HYPER_FAST_PARSE=true
- TEST_RELEASE=true HYPER_FAST_PARSE=false
- TEST_RELEASE=true HYPER_FAST_PARSE=true
- NGHTTP2=true

matrix:
allow_failures:
- env: TEST_RELEASE=true HYPER_FAST_PARSE=true
- env: TEST_RELEASE=true HYPER_FAST_PARSE=false
exclude:
- env: NGHTTP2=true
python: "pypy-5.3.1"

install:
- ".travis/install.sh"
before_script: "flake8 --max-complexity 15 --exclude 'hyper/packages/*' hyper test"
before_script: "flake8 hyper test"

script:
- >
if [[ "$TEST_RELEASE" == true ]]; then
py.test test_release.py
else
if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
py.test test/
else
coverage run -m py.test test/
coverage report
fi
fi
- ".travis/run.sh"
39 changes: 0 additions & 39 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,6 @@
set -e
set -x

if [[ "$NGHTTP2" = true ]]; then
# GCC 4.6 seems to cause problems, so go straight to 4.8.
sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8 libstdc++-4.8-dev
export CXX="g++-4.8" CC="gcc-4.8"
$CC --version

# Install nghttp2. Right now I haven't built a PPA for this so we have to
# do it from source, which kinda sucks. First, install a ton of
# prerequisite packages.
sudo apt-get install autoconf automake autotools-dev libtool pkg-config \
zlib1g-dev libcunit1-dev libssl-dev libxml2-dev \
libevent-dev libjansson-dev libjemalloc-dev
pip install cython

# Now, download and install nghttp2's latest version.
git clone https://github.com/tatsuhiro-t/nghttp2.git
cd nghttp2
DIR=`pwd`
export PYTHONPATH="$DIR/lib/python${TRAVIS_PYTHON_VERSION}/site-packages"
mkdir -p $PYTHONPATH
autoreconf -i
automake
autoconf
./configure --disable-threads --prefix=`pwd`
make
make install

# The makefile doesn't install into the active virtualenv. Install again.
cd python
python setup.py install
cd ../..

# Let's try ldconfig.
sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/libnghttp2.conf'
sudo ldconfig
fi

if [[ "$HYPER_FAST_PARSE" = true ]]; then
pip install pycohttpparser~=1.0
fi
Expand Down
15 changes: 15 additions & 0 deletions .travis/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e
set -x

if [[ "$TEST_RELEASE" == true ]]; then
py.test test_release.py
else
if [[ $TRAVIS_PYTHON_VERSION == pypy* ]]; then
py.test test/
else
coverage run -m py.test test/
coverage report
fi
fi
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Release History
===============

dev
---

*Bugfixes*

- Stream end flag when length of last chunk equal to MAX_CHUNK

v0.7.0 (2016-09-27)
-------------------

Expand Down
23 changes: 18 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,23 @@
Hyper: HTTP/2 Client for Python
===============================

.. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png
**This project is no longer maintained!**

Please use an alternative, such as `HTTPX`_ or others.

.. _HTTPX: https://www.python-httpx.org/

We will not publish further updates for ``hyper``.

Potential security issues will not be addressed.

.. image:: https://travis-ci.org/Lukasa/hyper.png?branch=master
:target: https://travis-ci.org/Lukasa/hyper
----

**So long, and thanks for all the fish!**

----

.. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png

HTTP is changing under our feet. HTTP/1.1, our old friend, is being
supplemented by the brand new HTTP/2 standard. HTTP/2 provides many benefits:
Expand All @@ -15,8 +28,8 @@ improved speed, lower bandwidth usage, better connection management, and more.

from hyper import HTTPConnection

conn = HTTPConnection('http2bin.org:443')
conn.request('GET', '/get')
conn = HTTPConnection('nghttp2.org:443')
conn.request('GET', '/httpbin/get')
resp = conn.get_response()

print(resp.read())
Expand Down
12 changes: 11 additions & 1 deletion docs/source/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,17 @@ SSL/TLS Certificate Verification

By default, all HTTP/2 connections are made over TLS, and ``hyper`` bundles
certificate authorities that it uses to verify the offered TLS certificates.
Currently certificate verification cannot be disabled.

You can change how certificates are verified by getting a new SSL context
from :func:`hyper.tls.init_context`, tweaking its options, and passing it
to the :class:`HTTPConnection <hyper.HTTPConnection>`. For example, this will
disable verification altogether::

import ssl
context = hyper.tls.init_context()
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
conn = HTTPConnection('http2bin.org:443', ssl_context=context)

Streaming Uploads
-----------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ the response from any of them, and switch between them using their stream IDs.
For example::

>>> from hyper import HTTPConnection
>>> c = HTTPConnection('http2bin.org')
>>> c = HTTPConnection('http2bin.org', port=443)
>>> first = c.request('GET', '/get', headers={'key': 'value'})
>>> second = c.request('POST', '/post', body=b'hello')
>>> third = c.request('GET', '/ip')
Expand Down
2 changes: 1 addition & 1 deletion hyper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
# Set default logging handler.
logging.getLogger(__name__).addHandler(logging.NullHandler())

__version__ = '0.7.0'
__version__ = '0.8.0dev0'
Loading