Skip to content

Latest commit

 

History

History

header-hx-trigger-3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

HX-Trigger Response Header

This example demonstrates the usage of HX-Trigger response header to emit multiple custom events at the client(doc).

We are using the nice utilities provided by the excellent Htmx package.

htmx.MapGet("/",(HttpRequestrequest,HttpResponseresponse)=>{response.Htmx(x =>{x.WithTrigger("show-me, show-you");});returnResults.Content($"GET => {DateTime.UtcNow}");});
close