/// import { IncomingHttpHeaders } from "http"; import { SyncContext } from '../store/SyncRowStore'; import { Connector, EntityDict, OakException, OpRecord } from "../types"; import { AccessConfiguration } from '../types/Configuration'; export default class SimpleConnector> implements Connector { static ASPECT_ROUTER: string; static BRIDGE_ROUTER: string; static SUBSCRIBE_ROUTER: string; static SUBSCRIBE_POINT_ROUTER: string; static ENDPOINT_ROUTER: string; private serverUrl; private serverAspectUrl; private serverBridgeUrl; private serverSubscribePointUrl; private configuration; private makeException; constructor(configuration: AccessConfiguration, makeException: (exceptionData: any) => OakException); protected makeHeadersAndBody(name: string, data: any, context?: FrontCxt): Promise<{ headers: Record; body: FormData; } | { headers: HeadersInit; body: string; }>; protected parseAspectResult(response: Response): Promise<{ result: any; opRecords: any; message: string | null; } | { result: ArrayBuffer; message: string | null; opRecords?: undefined; }>; callAspect(name: string, params: any, context?: FrontCxt): Promise<{ result: any; opRecords: any; message: string | null; } | { result: ArrayBuffer; message: string | null; opRecords?: undefined; }>; getRouter(): string; getSubscribeRouter(): string; getSubscribePointRouter(): string; getSubscribePoint(): Promise<{ url: any; path: any; }>; getEndpointRouter(): string; parseRequest(headers: IncomingHttpHeaders, body?: any, files?: any): { contextString: string | undefined; aspectName: string; data: any; }; serializeResult(result: any, opRecords: OpRecord[], headers: IncomingHttpHeaders, body: any, message?: string): Promise<{ body: any; headers?: Record | undefined; }>; serializeException(exception: OakException, headers: IncomingHttpHeaders, body: any): { body: any; headers?: Record | undefined; }; getBridgeRouter(): string; /** * 通过本地服务器桥接访问外部资源的url * @param url * @param headers */ makeBridgeUrl(url: string, headers?: Record): string; parseBridgeRequestQuery(urlParams: string): { url: string; headers?: Record | undefined; }; getFullData(): Promise<{}>; }