Skip to content
Zotonic
  • Start
  • Guides
  • 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
  • API and integration
  • Notification
  • Send and receive
  • HTTP

observe_middleware/3

Delegates the request processing.

Type:

foldl

Return:

updated z:context()

#middleware{} properties:

  • on: request|welformed|handled

Edit on GitHub

observe_http_log_access/2 Other notifications observe_search_query_term/2

Related documentation

Notifications

observe_translate/2

Request a translation of a list of strings. The resulting translations must be in the same order as the request. This notification is…

Notifications

observe_url_fetch_options/2

Determine the URL fetch options for fetching the content of an URL. Used by z_fetch.erl.

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_mailinglist_message/2

Send a welcome or goodbye message to the given recipient. The recipient is either a recipient-id or a recipient props. ‘what’ is…

Notifications

observe_validate_query_args/3

Called just before validation of all query arguments by z_validation.

Notifications

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.

Notifications

observe_activity_send/2

Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.

Notifications

observe_email_ensure_handler/2

Add a handler for receiving e-mail notifications

GitHub © 2026 Zotonic