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

jsMain.web.cache.Cache.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package web.cache

import js.core.ReadonlyArray
import js.core.Void
import web.http.Request
import web.http.Response
import web.url.URL
import kotlin.js.Promise

sealed external class Cache {
    fun add(request: Request): Promise
    fun add(request: String): Promise
    fun add(request: URL): Promise
    fun addAll(requests: ReadonlyArray): Promise
    fun addAll(requests: ReadonlyArray): Promise
    fun delete(
        request: Request,
        options: CacheQueryOptions = definedExternally,
    ): Promise

    fun delete(
        request: String,
        options: CacheQueryOptions = definedExternally,
    ): Promise

    fun delete(
        request: URL,
        options: CacheQueryOptions = definedExternally,
    ): Promise

    fun keys(
        request: Request = definedExternally,
        options: CacheQueryOptions = definedExternally,
    ): Promise>

    fun keys(
        request: String,
        options: CacheQueryOptions = definedExternally,
    ): Promise>

    fun keys(
        request: URL,
        options: CacheQueryOptions = definedExternally,
    ): Promise>

    fun match(
        request: Request,
        options: CacheQueryOptions = definedExternally,
    ): Promise

    fun match(
        request: String,
        options: CacheQueryOptions = definedExternally,
    ): Promise

    fun match(
        request: URL,
        options: CacheQueryOptions = definedExternally,
    ): Promise

    fun matchAll(
        request: Request = definedExternally,
        options: CacheQueryOptions = definedExternally,
    ): Promise>

    fun matchAll(
        request: String,
        options: CacheQueryOptions = definedExternally,
    ): Promise>

    fun matchAll(
        request: URL,
        options: CacheQueryOptions = definedExternally,
    ): Promise>

    fun put(
        request: Request,
        response: Response,
    ): Promise

    fun put(
        request: String,
        response: Response,
    ): Promise

    fun put(
        request: URL,
        response: Response,
    ): Promise
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy