Skip to main content
Module

x/windmill/windmill-api/index.ts>ServerConfiguration

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class ServerConfiguration
import { ServerConfiguration } from "https://deno.land/x/windmill@v1.28.1/windmill-api/index.ts";

Represents the configuration of a server including its url template and variable configuration based on the url.

Constructors

new
ServerConfiguration(url: string, variableConfiguration: T)

Type Parameters

T extends { [key: string]: string; }

Methods

private
getUrl()
makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext

Creates a new request context for this server using the url with variables replaced with their respective values and the endpoint of the request appended.

setVariables(variableConfiguration: Partial<T>)

Sets the value of the variables of this server.