@platform/cell.client
Version:
A strongly typed HTTP client for operating with a CellOS service end-point.
18 lines (17 loc) • 650 B
TypeScript
import { t } from '../common';
export declare type IClientNsArgs = {
uri: t.INsUri;
urls: t.IUrls;
http: t.IHttp;
};
export declare class HttpClientNs implements t.IHttpClientNs {
static create(args: IClientNsArgs): t.IHttpClientNs;
private constructor();
private readonly args;
readonly uri: t.INsUri;
readonly url: t.IUrlsNs;
toString(): string;
exists(): Promise<boolean>;
read(options?: t.IReqQueryNsInfo): Promise<t.IHttpClientResponse<t.IUriResponse<t.IResGetNsData, t.IResGetNsUrls>>>;
write(data: t.IReqPostNsBody, options?: t.IReqQueryNsWrite): Promise<t.IHttpClientResponse<t.IResPostNs>>;
}