mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-11-29 22:54:32 +01:00
Update README.md
This commit is contained in:
parent
9427a65244
commit
35f86927e7
1 changed files with 13 additions and 13 deletions
26
README.md
26
README.md
|
@ -38,16 +38,16 @@ have a supported extractor. Additionally, all extractors are infallible, meaning
|
||||||
they will always succeed and never return an error. If the header is not
|
they will always succeed and never return an error. If the header is not
|
||||||
present, the extractor will return `None` or `false` in most cases.
|
present, the extractor will return `None` or `false` in most cases.
|
||||||
|
|
||||||
| Header | Extractor | Value |
|
| Header | Extractor | Value |
|
||||||
| --- | --- | --- |
|
|------------------------------|---------------------------|------------------|
|
||||||
| `HX-Boosted` | `HxBoosted` | `bool` |
|
| `HX-Boosted` | `HxBoosted` | `bool` |
|
||||||
| `HX-Current-URL` | `HxCurrentUrl` | `Option<String>` |
|
| `HX-Current-URL` | `HxCurrentUrl` | `Option<String>` |
|
||||||
| `HX-History-Restore-Request` | `HxHistoryRestoreRequest` | `bool` |
|
| `HX-History-Restore-Request` | `HxHistoryRestoreRequest` | `bool` |
|
||||||
| `HX-Prompt` | `HxPrompt` | `Option<String>` |
|
| `HX-Prompt` | `HxPrompt` | `Option<String>` |
|
||||||
| `HX-Request` | `HxRequest` | `bool` |
|
| `HX-Request` | `HxRequest` | `bool` |
|
||||||
| `HX-Target` | `HxTarget` | `Option<String>` |
|
| `HX-Target` | `HxTarget` | `Option<String>` |
|
||||||
| `HX-Trigger-Name` | `HxTriggerName` | `Option<String>` |
|
| `HX-Trigger-Name` | `HxTriggerName` | `Option<String>` |
|
||||||
| `HX-Trigger` | `HxTrigger` | `Option<String>` |
|
| `HX-Trigger` | `HxTrigger` | `Option<String>` |
|
||||||
|
|
||||||
## Request Guards
|
## Request Guards
|
||||||
|
|
||||||
|
@ -108,9 +108,9 @@ fn protected_router() -> Router {
|
||||||
### Feature Flags
|
### Feature Flags
|
||||||
|
|
||||||
<!-- markdownlint-disable -->
|
<!-- markdownlint-disable -->
|
||||||
| Flag | Default | Description | Dependencies |
|
| Flag | Default | Description | Dependencies |
|
||||||
|-|-|-|-|
|
|----------|----------|----------------------------|---------------------------------------------|
|
||||||
| `guards`| Disabled | Adds request guard layers. | `tower`, `futures-core`, `pin-project-lite` |
|
| `guards` | Disabled | Adds request guard layers. | `tower`, `futures-core`, `pin-project-lite` |
|
||||||
<!-- markdownlint-enable -->
|
<!-- markdownlint-enable -->
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
Loading…
Reference in a new issue