IIIFImagePlug.V3.DataRequest (IIIFImagePlug v0.6.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_request/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
%DataRequest{
path: "test/images/my_image.jpg",
response_headers: [
{"cache-control", "public, max-age=31536000, immutable"}
]
}