@@ -10,13 +10,15 @@ const HX_TRIGGER_NAME: HeaderValue = HeaderValue::from_static(headers::HX_TRIGGE
10
10
11
11
/// The `Vary: HX-Request` header.
12
12
///
13
- /// You may want to add this header to the response if your handler responds differently based on
14
- /// the `HX-Request` request header.
13
+ /// You may want to add this header to the response if your handler responds
14
+ /// differently based on the `HX-Request` request header.
15
15
///
16
- /// For example, if your server renders the full HTML when the `HX-Request` header is missing or
17
- /// `false`, and it renders a fragment of that HTML when `HX-Request: true`.
16
+ /// For example, if your server renders the full HTML when the `HX-Request`
17
+ /// header is missing or `false`, and it renders a fragment of that HTML when
18
+ /// `HX-Request: true`.
18
19
///
19
- /// You probably need this only for `GET` requests, as other HTTP methods are not cached by default.
20
+ /// You probably need this only for `GET` requests, as other HTTP methods are
21
+ /// not cached by default.
20
22
///
21
23
/// See <https://htmx.org/docs/#caching> for more information.
22
24
#[ derive( Debug , Clone ) ]
@@ -41,10 +43,11 @@ impl extractors::HxRequest {
41
43
42
44
/// The `Vary: HX-Target` header.
43
45
///
44
- /// You may want to add this header to the response if your handler responds differently based on
45
- /// the `HX-Target` request header.
46
+ /// You may want to add this header to the response if your handler responds
47
+ /// differently based on the `HX-Target` request header.
46
48
///
47
- /// You probably need this only for `GET` requests, as other HTTP methods are not cached by default.
49
+ /// You probably need this only for `GET` requests, as other HTTP methods are
50
+ /// not cached by default.
48
51
///
49
52
/// See <https://htmx.org/docs/#caching> for more information.
50
53
#[ derive( Debug , Clone ) ]
@@ -69,10 +72,11 @@ impl extractors::HxTarget {
69
72
70
73
/// The `Vary: HX-Trigger` header.
71
74
///
72
- /// You may want to add this header to the response if your handler responds differently based on
73
- /// the `HX-Trigger` request header.
75
+ /// You may want to add this header to the response if your handler responds
76
+ /// differently based on the `HX-Trigger` request header.
74
77
///
75
- /// You probably need this only for `GET` requests, as other HTTP methods are not cached by default.
78
+ /// You probably need this only for `GET` requests, as other HTTP methods are
79
+ /// not cached by default.
76
80
///
77
81
/// See <https://htmx.org/docs/#caching> for more information.
78
82
#[ derive( Debug , Clone ) ]
@@ -97,10 +101,11 @@ impl extractors::HxTrigger {
97
101
98
102
/// The `Vary: HX-Trigger-Name` header.
99
103
///
100
- /// You may want to add this header to the response if your handler responds differently based on
101
- /// the `HX-Trigger-Name` request header.
104
+ /// You may want to add this header to the response if your handler responds
105
+ /// differently based on the `HX-Trigger-Name` request header.
102
106
///
103
- /// You probably need this only for `GET` requests, as other HTTP methods are not cached by default.
107
+ /// You probably need this only for `GET` requests, as other HTTP methods are
108
+ /// not cached by default.
104
109
///
105
110
/// See <https://htmx.org/docs/#caching> for more information.
106
111
#[ derive( Debug , Clone ) ]
0 commit comments