mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-11-30 15:04:32 +01:00
Update README.md
This commit is contained in:
parent
b4f2dcbd88
commit
3af87ed81c
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ trivially set the `HX-Request` header themselves. This is merely a convenience
|
|||
for preventing users from receiving partial responses without context. If you
|
||||
need to secure an endpoint you should be using a proper auth system._
|
||||
|
||||
## Example: Extractors
|
||||
### Example: Extractors
|
||||
|
||||
In this example, we'll look for the `HX-Boosted` header, which is set when
|
||||
applying the [hx-boost](https://htmx.org/attributes/hx-boost/) attribute to an
|
||||
|
@ -114,7 +114,7 @@ async fn get_index(HxBoosted(boosted): HxBoosted) -> impl IntoResponse {
|
|||
}
|
||||
```
|
||||
|
||||
## Example: Responders
|
||||
### Example: Responders
|
||||
|
||||
```rust
|
||||
use axum_htmx::HxResponseTrigger;
|
||||
|
|
Loading…
Reference in a new issue