LEVIATHAN v962456e · 962456eee1

atlantis · Client

class ApiClient

since 0.1.0-alpha.1linux

Constructors

new

new(HttpClient http, string host, int port)

Fields

headers

HeaderMap headers

host

string host

http

port

int port

Methods

bearer

bearer(string token) -> void

deleteJson

deleteJson(string path) -> Promise<JsonValue>

getJson

getJson(string path) -> Promise<JsonValue>

handleResponse

handleResponse(HttpResponse resp) -> JsonValue

postJson

postJson(string path, JsonValue body) -> Promise<JsonValue>

putJson

putJson(string path, JsonValue body) -> Promise<JsonValue>

rawRequest

rawRequest(string method, string path, string body) -> Promise<HttpResponse>

requestJson

requestJson(string method, string path, string body) -> Promise<JsonValue>