From b9261c09883da65387f7b4a4d9a651a3757d3f40 Mon Sep 17 00:00:00 2001 From: Rob Wagner Date: Sun, 3 Dec 2023 15:47:22 -0500 Subject: [PATCH] Update README.md --- README.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 3fea910..e289a8d 100644 --- a/README.md +++ b/README.md @@ -46,16 +46,16 @@ succeed and never return an error. In the case where a header is not present, the extractor will return `None` or `false` dependant on the expected return type. -| Header | Extractor | Value | -|------------------------------|---------------------------|------------------| -| `HX-Boosted` | `HxBoosted` | `bool` | -| `HX-Current-URL` | `HxCurrentUrl` | `Option` | -| `HX-History-Restore-Request` | `HxHistoryRestoreRequest` | `bool` | -| `HX-Prompt` | `HxPrompt` | `Option` | -| `HX-Request` | `HxRequest` | `bool` | -| `HX-Target` | `HxTarget` | `Option` | -| `HX-Trigger-Name` | `HxTriggerName` | `Option` | -| `HX-Trigger` | `HxTrigger` | `Option` | +| Header | Extractor | Value | +|------------------------------|---------------------------|---------------------------| +| `HX-Boosted` | `HxBoosted` | `bool` | +| `HX-Current-URL` | `HxCurrentUrl` | `Option` | +| `HX-History-Restore-Request` | `HxHistoryRestoreRequest` | `bool` | +| `HX-Prompt` | `HxPrompt` | `Option` | +| `HX-Request` | `HxRequest` | `bool` | +| `HX-Target` | `HxTarget` | `Option` | +| `HX-Trigger-Name` | `HxTriggerName` | `Option` | +| `HX-Trigger` | `HxTrigger` | `Option` | ## Responders @@ -64,19 +64,19 @@ have a supported responder. A responder is a basic type that implements `IntoResponseParts`, allowing you to simply and safely apply the HX-* headers to any of your responses. -| Header | Responder | Value | -|---------------------------|--------------------------------|------------------------------------------| -| `HX-Location` | `HxLocation` | `axum::http::Uri` | -| `HX-Push-Url` | `HxPushUrl` | `axum::http::Uri` | -| `HX-Redirect` | `HxRedirect` | `axum::http::Uri` | -| `HX-Refresh` | `HxRefresh` | `bool` | -| `HX-Replace-Url` | `HxReplaceUrl` | `axum::http::Uri` | -| `HX-Reswap` | `HxReswap` | `axum_htmx::responders::SwapOption` | -| `HX-Retarget` | `HxRetarget` | `String` | -| `HX-Reselect` | `HxReselect` | `String` | -| `HX-Trigger` | `HxResponseTrigger` | `axum_htmx::serde::HxEvent` | -| `HX-Trigger-After-Settle` | `HxResponseTrigger` | `axum_htmx::serde::HxEvent` | -| `HX-Trigger-After-Swap` | `HxResponseTrigger` | `axum_htmx::serde::HxEvent` | +| Header | Responder | Value | +|---------------------------|---------------------|-------------------------------------| +| `HX-Location` | `HxLocation` | `axum::http::Uri` | +| `HX-Push-Url` | `HxPushUrl` | `axum::http::Uri` | +| `HX-Redirect` | `HxRedirect` | `axum::http::Uri` | +| `HX-Refresh` | `HxRefresh` | `bool` | +| `HX-Replace-Url` | `HxReplaceUrl` | `axum::http::Uri` | +| `HX-Reswap` | `HxReswap` | `axum_htmx::responders::SwapOption` | +| `HX-Retarget` | `HxRetarget` | `String` | +| `HX-Reselect` | `HxReselect` | `String` | +| `HX-Trigger` | `HxResponseTrigger` | `axum_htmx::serde::HxEvent` | +| `HX-Trigger-After-Settle` | `HxResponseTrigger` | `axum_htmx::serde::HxEvent` | +| `HX-Trigger-After-Swap` | `HxResponseTrigger` | `axum_htmx::serde::HxEvent` | ## Request Guards