Skip to main content

Module response_options

Module response_options 

Source
Expand description

Presentation options for successful individual-object downloads.

The request extractor validates these options without modifying the signed URI. Handlers attach their typed headers only to successful GET/HEAD responses, including partial content. Error responses retain their existing headers.

§Query options

  • response-content-disposition: exactly inline or attachment (the default). The stored filename is retained and formatted using the existing download filename rules.

Parameter names are case-insensitive, matching pre-signed URL canonicalization. Duplicate supported options and invalid values are rejected with 400. Unrelated parameters are ignored by this extractor and remain covered by the existing signature scheme.

Content type and content encoding always come from stored metadata. Content-language and expires overrides are not supported. No MIME allowlist is applied to inline responses.

Structs§

ResponseOptions
Validated presentation options for successful object downloads.

Enums§

ContentDisposition
Whether a browser should download an object or display it inline.