ImagePipe.URL.Config (image_pipe_url v0.1.0)

Copy Markdown View Source

URL settings shared by a builder and the server that serves its URLs.

Build one with ImagePipe.URL.config/1, which lists the options. On the serving side, pass the same options, except :validate_against, to ImagePipe.config/1, so the server verifies signatures and decrypts sources with the same keys. Inspecting the struct hides its values.

Summary

Types

t()

@type t() :: %ImagePipe.URL.Config{options: keyword()}

validate_against()

@type validate_against() :: %{
  presets: map(),
  request_defaults: map() | nil,
  lookup?: boolean(),
  watermarks: [String.t()] | nil,
  request_watermarks: boolean() | nil
}