A modified `http` loader for thumbor which introduces an additional statd counter to track headers
Project description
An extended http loader for thumbor which introduces an additional statd counter original_image_with_size_fetch.$code.$host.$widthx$height.$parsedUrl
## Configuration
LOADER=”thumbor_hsl.loaders.http_loader”
### Optional query parsing
If you specify the HSL_REGEX_MATCH_URL option, you can provide a regex with a group which value will be appended in $parsedUrl
Example:
HSL_REGEX_MATCH_URL=”someQuery=(d+)”
For a given url, e.g. https://my-image?someQuery=10 the result of 10 will be appended to the counter.
## Install
pip install https://github.com/BowlingX/thumbor-http-header-stats-loader/archive/1.0.0.zip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for thumbor_hsl-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bbca347548eeeaeae2aef4a7728de054a966d96246e5930a434419e14540367 |
|
MD5 | 2a75b61231a122f8156525c488693233 |
|
BLAKE2b-256 | 2241066c9da01322f4217915f0ad2bf37384690398abef72106e29223d79f050 |