All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.connect.gitlab.api.PagedGitLabAction.kt Maven / Gradle / Ivy

There is a newer version: 5.36.0.0
Show newest version
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"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy