www/py-priority1 1.3.0_1 MidnightBSD
Pure-Python implementation of the HTTP/2 priority tree
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- www, python
Description
Priority is a pure-Python implementation of the priority logic for HTTP/2, set out in RFC 7540 Section 5.3 (Stream Priority). This logic allows for clients to express a preference for how the server allocates its (limited) resources to the many outstanding HTTP requests that may be running over a single HTTP/2 connection.
Specifically, this Python implementation uses a variant of the implementation used in the excellent H2O project. This original implementation is also the inspiration for nghttp2's priority implementation, and generally produces a very clean and even priority stream. The only notable changes from H2O's implementation are small modifications to allow the priority implementation to work cleanly as a separate implementation, rather than being embedded in a HTTP/2 stack directly.
While priority information in HTTP/2 is only a suggestion, rather than an enforceable constraint, where possible servers should respect the priority requests of their clients.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | www/py-priority1 | 1.3.0_1 |
| FreeBSD | www/py-priority1 | 1.3.0_1 |
| DragonFly | www/py-priority1 | 1.3.0_1 |
| HardenedBSD | www/py-priority1 | 1.3.0_1 |
| GhostBSD | www/py-priority1 | 1.3.0_1 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}priority1
From mports:
cd /usr/mports/www/py-priority1 && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}priority1>0:www/py-priority1
Dependencies
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| priority-1.3.0.tar.gz | 13827 | 6bc1961a6d7fcacbfc337769f1a382c8e746566aaa365e78047abe9f66b2ffbe |
Master sites 1
- PYPI