Crate tiles_proxy

Source
Expand description

TilesProxy: a cache proxy for tiles.

Supported standards for tiles:

Configuration of origin tiles servers is done in a TOML file.

To enable browser caching, HTTP headers are added: ETag and Cache-Control. CORS headers are also added to enable canvas export (eg.: in OpenLayers) from browser.

Modulesยง

cache ๐Ÿ”’
Tile cache management.
config ๐Ÿ”’
Configuration for TilesProxy, deserialized from TOML file.
http_headers ๐Ÿ”’
Additional HTTP headers for browser cache management.
tile_request ๐Ÿ”’
Structs to store HTTP requests of a tile.

Functionsยง

general_not_found ๐Ÿ”’
Catcher for 404 errors.
index ๐Ÿ”’
Root url.
main ๐Ÿ”’
rocket ๐Ÿ”’
Rocket launch.
run ๐Ÿ”’
Run function, also used by tests.
wmts_tile
URL for WMTS tile.
wmts_tile_not_found ๐Ÿ”’
Catcher for 404 errors about WMTS tile.
xyz_tile
URL for XYZ tile.
xyz_tile_not_found ๐Ÿ”’
Catcher for 404 errors about XYZ tile.