Skip to content

Commit

Permalink
fixup! KTOR-7584 HTMX extension for Ktor
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhham committed Feb 10, 2025
1 parent 06da187 commit 6c7cca9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public value class HxRoute internal constructor(private val route: Route) : Rout
/**
* Sub-routes only apply to a specific HX-Target header.
*/
public fun target(expectedTrigger: String, body: Route.() -> Unit): Route {
return header(HxRequestHeaders.Target, expectedTrigger, body)
public fun target(expectedTarget: String, body: Route.() -> Unit): Route {
return header(HxRequestHeaders.Target, expectedTarget, body)
}

/**
Expand Down
4 changes: 0 additions & 4 deletions ktor-utils/api/ktor-utils.api
Original file line number Diff line number Diff line change
Expand Up @@ -595,10 +595,6 @@ public final class io/ktor/util/collections/MapDelegatesKt {
public static final fun setValue (Ljava/lang/String;Lio/ktor/util/collections/StringMap;Lkotlin/reflect/KProperty;Ljava/lang/String;)V
}

public final class io/ktor/util/collections/SerializedKey {
public fun <init> (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
}

public final class io/ktor/util/collections/SerializedMapValue {
public fun <init> (Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public interface StringMapDelegate : StringMap {
}

/**
* Simplifies property access delegation for HxAttributes when setting attribute values from a string constant.
* Simplifies property access delegation for string maps when using a string constant.
*/
@InternalAPI
public operator fun String.getValue(thisRef: StringMap, property: KProperty<*>): String? =
thisRef[this]

/**
* Simplifies property assignment delegation for HxAttributes when setting attribute values from a string constant.
* Simplifies property assignment delegation for string maps when using a string constant.
*/
@InternalAPI
public operator fun String.setValue(thisRef: StringMap, property: KProperty<*>, value: String?) {
Expand Down

0 comments on commit 6c7cca9

Please sign in to comment.