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

invirt.pebble.InvirtPebbleRequest.kt Maven / Gradle / Ivy

There is a newer version: 0.10.11
Show newest version
package invirt.pebble

import invirt.data.Page
import invirt.http4k.*
import org.http4k.core.Request
import org.http4k.core.Uri

data class InvirtPebbleRequest(val delegate: Request) : Request by delegate {

    fun hasQueryValue(name: String, value: String): Boolean = delegate.uri.hasQueryValue(name, value)
    fun toggleQueryValue(name: String, value: Any): Uri = delegate.uri.toggleQueryValue(name, value)
    fun replacePage(page: Page): Uri = delegate.uri.replacePage(page)
    fun replaceQuery(name: String, value: Any): Uri = delegate.uri.replaceQuery(name to value)
    fun removeQueryValue(name: String, value: Any): Uri = delegate.uri.removeQueryValue(name, value)
    fun removeQueries(names: Collection): Uri = delegate.uri.removeQueries(names)
    fun removeQueries(names: Array): Uri = delegate.uri.removeQueries(names.toSet())
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy