./www/py-aiohttp, Async http client/server framework

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.3.2, Package name: py36-aiohttp-2.3.2, Maintainer: pkgsrc-users

HTTP client/server for asyncio (PEP 3156).

Features:
* Supports both Client and HTTP Server.
* Supports both Server WebSockets and Client WebSockets out-of-the-box.
* Web-server has Middlewares, Signals and pluggable routing.


Required to run:
[www/py-yarl]

Required to build:
[www/py-gunicorn] [pkgtools/cwrappers]

Master sites:

SHA1: 1782ed9a2e79773d394734d094ccfee3e7840d4c
RMD160: 11974e01ff20c91333b552f647821927b5802f7b
Filesize: 821.318 KB

Version history: (Expand)


CVS history: (Expand)


   2017-11-02 14:13:24 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-aiohttp: updated to 2.3.2

2.3.2:
Fix passing client max size on cloning request obj.
Fix ClientConnectorSSLError and ClientProxyConnectionError for proxy connector.
Drop generated _http_parser shared object from tarball distribution.
Fix connector convert OSError to ClientConnectorError.
Fix connection attempts for multiple dns hosts.
Fix ValueError for AF_INET6 sockets if a preexisting INET6 socket to the \ 
aiohttp.web.run_app function.
_SessionRequestContextManager closes the session properly now.
Rename from_env to trust_env in client reference.

2.3.1:
Relax attribute lookup in warning about old-styled middleware
   2017-10-19 08:54:18 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-aiohttp: update to 2.3.0

2.3.0:
Features
--------
Add SSL related params to ClientSession.request
Make enable_compression work on HTTP/1.0
Deprecate registering synchronous web handlers
Switch to multidict 3.0. All HTTP headers preserve casing now but compared in \ 
case-insensitive way.
Improvement for normalize_path_middleware. Added possibility to handle URLs with \ 
query string.
Use towncrier for CHANGES.txt build
Implement trust_env=True param in ClientSession.
Added variable to customize proxy headers
Implement router.add_routes and router decorators.
Deprecated BaseRequest.has_body in favor of BaseRequest.can_read_body Added \ 
BaseRequest.body_exists attribute that stays static for the lifetime of the \ 
request
Provide BaseRequest.loop attribute
Make _CoroGuard awaitable and fix ClientSession.close warning message
Responses to redirects without Location header are returned instead of raising a \ 
RuntimeError
Added get_client, get_server, setUpAsync and tearDownAsync methods to AioHTTPTestCase
Add automatically a SafeChildWatcher to the test loop
add ability to disable automatic response decompression
Add support for throttling DNS request, avoiding the requests saturation when \ 
there is a miss in the DNS cache and many requests getting into the connector at \ 
the same time.
Use request for getting access log information instead of message/transport \ 
pair. Add RequestBase.remote property for accessing to IP of client initiated \ 
HTTP request.
json() raises a ContentTypeError exception if the content-type does not meet the \ 
requirements instead of raising a generic ClientResponseError.
Make the HTTP client able to return HTTP chunks when chunked transfer encoding \ 
is used.
add append_version arg into StaticResource.url and StaticResource.url_for \ 
methods for getting an url with hash (version) of the file.
Fix parsing the Forwarded header. * commas and semicolons are allowed inside \ 
quoted-strings; * empty forwarded-pairs (as in for=_1;;by=_2) are allowed; * \ 
non-standard parameters are allowed (although this alone could be easily done in \ 
the previous parser).
Don’t require ssl module to run. aiohttp does not require SSL to function. The \ 
code paths involved with SSL will only be hit upon SSL usage. Raise RuntimeError \ 
if HTTPS protocol is required but ssl module is not present.
Accept coroutine fixtures in pytest plugin
Call shutdown_asyncgens before event loop closing on Python 3.6.
Speed up Signals when there are no receivers
Raise InvalidURL instead of ValueError on fetches with invalid URL.
Move DummyCookieJar into cookiejar.py
run_app: Make print=None disable printing
Support brotli encoding (generic-purpose lossless compression algorithm)
Add server support for WebSockets Per-Message Deflate. Add client option to add \ 
deflate compress header in WebSockets request header. If calling \ 
ClientSession.ws_connect() with compress=15 the client will support deflate \ 
compress negotiation.
Support verify_ssl, fingerprint, ssl_context and proxy_headers by client.ws_connect.
Added aiohttp.ClientConnectorSSLError when connection fails due ssl.SSLError
aiohttp.web.Application.make_handler support access_log_class
Build HTTP parser extension in non-strict mode by default.

Bugfixes
--------
Clear auth information on redirecting to other domain
Fix missing app.loop on startup hooks during tests
Fix issue with synchronous session closing when using ClientSession as an \ 
asynchronous context manager.
Fix issue with CookieJar incorrectly expiring cookies in some edge cases.
Force use of IPv4 during test, this will make tests run in a Docker container
Warnings about unawaited coroutines now correctly point to the user’s code.
Fix issue with IndexError being raised by the StreamReader.iter_chunks() generator.
Support HTTP 308 Permanent redirect in client class.
Fix FileResponse sending empty chunked body on 304.
Do not add Content-Length: 0 to GET/HEAD/TRACE/OPTIONS requests by default.
Fix parsing the Forwarded header according to RFC 7239.
Securely determining remote/scheme/host
Fix header name parsing, if name is split into multiple lines
Handle session close during connection, KeyError: \ 
<aiohttp.connector._TransportPlaceholder>
Fixes uncaught TypeError in helpers.guess_filename if name is not a string
Raise OSError on async DNS lookup if resolved domain is an alias for another \ 
one, which does not have an A or CNAME record.
Fix incorrect warning in StreamReader.
Properly clone state of web request
Fix C HTTP parser for cases when status line is split into different TCP packets.
Fix web.FileResponse overriding user supplied Content-Type
   2017-08-04 07:24:49 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
2.2.5:
Don’t raise deprecation warning on loop.run_until_complete(client.close())
   2017-08-03 09:46:12 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
2.2.4:
Fix issue with synchronous session closing when using ClientSession as an \ 
asynchronous context manager.
   2017-07-16 21:04:16 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
HTTP client/server for asyncio (PEP 3156).

Features:
* Supports both Client and HTTP Server.
* Supports both Server WebSockets and Client WebSockets out-of-the-box.
* Web-server has Middlewares, Signals and pluggable routing.