IIIFImagePlug.V3.DataRequestMetadata (IIIFImagePlug v0.7.0)
View SourceA struct used to inject values from your application into the plug when responding to image data requests.
See also IIIFImagePlug.V3.data_metadata/1
.
Fields
:path
(required) your local file system path to the image file.:response_headers
(optional), a list of key-value tuples that should be set as response headers for the request.
Example
%DataRequestMetadata{
path: "test/images/my_image.jpg",
response_headers: [
{"cache-control", "public, max-age=31536000, immutable"}
]
}