Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Notifications
  • Reference
  • Backend developer
  • Metadata
  • Resource
  • Notification
  • HTTP

observe_resource_headers/3

Let all modules add resource specific response headers to the request. The accumulator is the list of headers to be set.

Type:

foldl

Return:

list( {binary(), binary()} )

#resource_headers{} properties:

  • id: m_rsc:resource_id()|undefined

Edit on GitHub

Related documentation

Notifications

observe_content_security_report/2

Handle a content security report

Notifications

observe_content_security_header(Default, Acc, Context)

Check and possibly modify the http response security headers All headers are in lowercase.

Notifications

observe_validate_query_args/3

Called just before validation of all query arguments by z_validation.

Notifications

observe_security_headers/2

Check and possibly modify the http response security headers All headers are in lowercase.

Notifications

observe_rsc_insert/3

Foldr for a resource insert, these are the initial properties and will overrule the properties in the insert request. Use with care. The…

Notifications

observe_session_context/3

Refresh the context or request process for the given request or action

Notifications

observe_rsc_get/3

Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.

Notifications

observe_middleware/3

Delegates the request processing.

Notifications

observe_hierarchy_updated/2

Signal that the hierarchy underneath a resource has been changed by mod_menu

GitHub © 2026 Zotonic