UNPKG

@platform/cell.client

Version:

A strongly typed HTTP client for operating with a CellOS service end-point.

16 lines (15 loc) 696 B
import { t } from '../common'; export declare class HttpClient implements t.IHttpClient { static create(input?: string | number | t.IHttpClientOptions): t.IHttpClient; static isClient(input?: any): boolean; private constructor(); readonly origin: string; readonly request$: t.IHttpClient['request$']; readonly response$: t.IHttpClient['response$']; private readonly urls; private readonly http; info<T extends t.IResGetSysInfo>(): Promise<t.IHttpClientResponse<T>>; ns(input: string | t.INsUri | t.ICoordUri | t.IFileUri): t.IHttpClientNs; cell(input: string | t.ICellUri): t.IHttpClientCell; file(input: string | t.IFileUri): t.IHttpClientFile; }