Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.20.0-canary.0/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

mergeTelemetry(telemetry: Telemetry): void
request<TResult>(req: UpstashRequest): Promise<UpstashResponse<TResult>>