-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProtoSSChe.d.ts
55 lines (53 loc) · 1.85 KB
/
ProtoSSChe.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
declare namespace zetaret.node {
export interface ProtoSSCheCTOR {
new(): ProtoSSChe
}
export interface ProtoSSChe {
env: ServerEnvironment;
htserv: XServer;
acceptAppRequests: boolean;
apps: object;
cookieMethod: Function;
requestMethod: Function;
onErrorBody: Function;
onEndBody: Function;
dataJoin: string;
reqIdLength: number;
keepBufferPerContentType: { [ctype: string]: boolean };
requestBodyMethods: Array<string>;
readRequestOnError: boolean;
requestMiddleware: Array<zetaret.node.utils.RequestMiddlewareFunction>;
responseMiddleware: Array<zetaret.node.utils.ResponseMiddlewareFunction>;
getAppRequest(request: XRequest): Input
onRequest(request: Input, response: Output): void
onReadRequestBody(request: Input, body: string, response: Output): ProtoSSChe | Promise<ProtoSSChe>
splitUrl(url: string): SplitURL
rndstr(l: number): string
getReqId(): string
pushProtoSSResponse(request: Input, response: Output): ProtoSSChe
readRequestBody(request: Input, response: Output): ProtoSSChe
updateCookies(request: Input, response: Output, headers: object): ProtoSSChe
endResponse(request: Input, response: Output): ProtoSSChe | Promise<ProtoSSChe>
}
export interface ProtoSSCheInstance {
xpro: ServerModule;
xprocls: ProtoSSCheCTOR;
xmodule: string;
serverche: ProtoSSChe;
}
export interface ProtoSSCheModule {
serverclass: ProtoSSCheCTOR;
ServerEnum: { [serverid: string]: string };
loadedModule: () => ServerModule;
loadedModuleClass: () => ProtoSSCheCTOR;
serverche: () => ProtoSSChe;
instance: () => ProtoSSCheInstance;
StartUp(): void
ShutDown(): void
setEnv(envobj: ServerEnvironment): void
resetFSInterval(): void
stopFSInterval(): void
getNodeServer(requestListener: Function, envd?: ServerEnvironment, port?: number) : NodeServerData
getModuleInstance(xmodule: string): ModuleInstance
}
}