Your task is to build an asynchronous HTTP proxy (see definition in RFC2616) complying to the requirements specified below.
-
Range requests must be supported as defined in RFC2616, but also via
range
query parameter. -
HTTP 416 error must be returned in case where both header and query parameter are specified, but with a different value.
-
Program must start with a single command
docker-compose up
. -
Proxy must be reachable at
https://<docker-host>:${HTTP_PROXY_PORT}
. -
Usage statistics must be available at
https://<docker-host>:${HTTP_PROXY_PORT}/stats
- total bytes transferred
- uptime
-
Code must run with Python 3.8.
-
Code must be covered with tests
-
Code must be delivered as a link to public GitHub repository.