-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTMX Integration #735
HTMX Integration #735
Conversation
Close: #660 - Defines constants for HTMX Request Header and HTMX Response Headers - Defines HTMXResponse for out of band swaps. - Defines HtmxRequestUtils Allows to bind a HttpRequestHeaders to a controller method.
views-htmx/src/main/java/io/micronaut/views/htmx/HtmxConfigurationProperties.java
Outdated
Show resolved
Hide resolved
views-htmx/src/main/java/io/micronaut/views/htmx/HtmxConfigurationProperties.java
Outdated
Show resolved
Hide resolved
views-htmx/src/main/java/io/micronaut/views/htmx/HtmxConfigurationProperties.java
Outdated
Show resolved
Hide resolved
views-htmx/src/main/java/io/micronaut/views/htmx/HtmxConfigurationProperties.java
Outdated
Show resolved
Hide resolved
views-htmx/src/main/java/io/micronaut/views/htmx/HtmxConfigurationProperties.java
Outdated
Show resolved
Hide resolved
views-htmx/src/main/java/io/micronaut/views/htmx/http/HtmxRequestUtils.java
Outdated
Show resolved
Hide resolved
views-htmx/src/test/java/io/micronaut/views/htmx/HtmxConfigurationTest.java
Show resolved
Hide resolved
...test/java/io/micronaut/views/htmx/http/HtmxRequestHeadersTypedRequestArgumentBinderTest.java
Outdated
Show resolved
Hide resolved
views-htmx/src/test/java/io/micronaut/views/htmx/http/TodoItemMapper.java
Outdated
Show resolved
Hide resolved
…tionProperties.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…tionProperties.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…tionProperties.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…tionProperties.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…tionProperties.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…tionTest.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…estHeadersTypedRequestArgumentBinderTest.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…Mapper.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…estUtils.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…tionTest.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
…tionTest.java Co-authored-by: Tim Yates <tim.yates@gmail.com>
* @param <T> The model type | ||
*/ | ||
@Experimental | ||
public final class HtmxResponse<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the plan to enable more builder methods to set common HTMX response headers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that. However, I am not sure if it is necessary since you can do:
HttpResponse.ok(HttpResponse.builder()
.modelAndView()
.modelAndView()
.build())
.header(HtmxResponseHeaders.HX_REFRESH, StringUtils.TRUE);
@sdelamo This should target the 5.2.x branch if it's for 4.4.0? |
Quality Gate passedIssues Measures |
Close: #660
Allows to bind a HttpRequestHeaders to a controller method.