Skip to main content
Module

x/upstash_redis/pkg/http.ts>HttpClient

HTTP based Redis Client for Serverless and Edge Functions
Go to Latest
class HttpClient
implements Requester
import { HttpClient } from "https://deno.land/x/upstash_redis@v1.18.1/pkg/http.ts";

Constructors

new
HttpClient(config: HttpClientConfig)

Properties

baseUrl: string
headers: Record<string, string>
readonly
options: { backend?: string; agent: any; responseEncoding?: false | "base64"; }
readonly
retry: { attempts: number; backoff: (retryCount: number) => number; }

Methods

request<TResult>(req: UpstashRequest): Promise<UpstashResponse<TResult>>