org.http4k.connect.gitlab.api.PagedGitLabAction.kt Maven / Gradle / Ivy
package org.http4k.connect.gitlab.api
import org.http4k.connect.AutomarshalledPagedAction
import org.http4k.connect.Paged
import org.http4k.core.Response
import org.http4k.core.Uri
import org.http4k.format.AutoMarshalling
import org.http4k.lens.Header
import kotlin.reflect.KClass
abstract class PagedGitLabAction, Self : PagedGitLabAction>(
toResult: (List, Uri?) -> PageType,
autoMarshalling: AutoMarshalling,
kClass: KClass
) : AutomarshalledPagedAction(toResult, autoMarshalling, kClass),
GitLabAction {
override fun invoke(target: Response) = Header.LINK(target)["next"]
}