axum-htmx
axum-htmx copied to clipboard
Is it possible to use the extractors with axum-extra::TypedHeaders?
I have this code, with that error message:
` pub async fn all_patients( TypedHeader(hx): TypedHeader<HxRequest>, Extension(db): Extension<Arc<Database>>, ... // other params ) -> Result<impl IntoResponse, AppError> { ...
if hx { // <-- "Mismatched types expected 'bool', found 'HxRequest' ... } else { ... } } `
Seems to me like I can't use both libraries together... Any ideas?