This example demonstrates the usage of HX-Retarget
response header to retarget an element (overriding the request) at the client using CSS selector(doc).
We are using the nice utilities provided by the excellent Htmx package.
htmx.MapGet("/",(HttpRequestrequest,HttpResponseresponse)=>{response.Htmx(x =>{x.Retarget("#get");});returnResults.Content($"GET => {DateTime.UtcNow}");});