The parsed Prefer request header.
nil means the client did not send that preference; handling defaults to
:lenient and handling_sent tells whether the client sent one. Tokens PgRest does
not recognize are kept in unknown, and every token in tokens (request order), so
PgRest.Request.Prefer.validate/2 can list the invalid ones in the order they were sent.
max_affected is any integer the client sent (0 included) and nil when it did not
parse. Built by PgRest.Request.Prefer.parse/1.
Summary
Types
@type t() :: %PgRest.Prefer{ count: :exact | :planned | :estimated | nil, handling: :lenient | :strict, handling_sent: boolean(), max_affected: integer() | nil, missing: :default | :null | nil, resolution: :merge_duplicates | :ignore_duplicates | nil, return: :minimal | :headers_only | :representation | nil, timezone: String.t() | nil, tokens: [String.t()], tx: :commit | :rollback | nil, unknown: [String.t()] }