Repository navigation
Expand file tree
/
Copy pathNetworking.d.ts
More file actions
42 lines (42 loc) · 3.14 KB
/
Copy pathNetworking.d.ts
File metadata and controls
42 lines (42 loc) · 3.14 KB
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
import { PHPContext } from "../PHPContext.js";
import type { PHPEngine } from "../PHPEngine.js";
import { PHPReference } from "./PHPVariable.js";
export declare class NetworkingRuntime {
static urlencode(ctx: PHPContext | null, valueArg?: PHPReference, raw?: boolean): Promise<string>;
static urldecode(ctx: PHPContext | null, valueArg?: PHPReference, raw?: boolean): Promise<string>;
static gethostname(ctx?: PHPContext): Promise<string>;
static gethostbyname(ctx: PHPContext | null, hostnameArg?: PHPReference): Promise<string>;
static gethostbyaddr(ctx: PHPContext | null, ipArg?: PHPReference): Promise<string | false>;
static ip2long(ctx: PHPContext | null, ipArg?: PHPReference): Promise<number | false>;
static long2ip(ctx: PHPContext | null, numArg?: PHPReference): Promise<string | false>;
static parse_url(ctx: PHPContext | null, urlStrArg?: PHPReference, componentArg?: PHPReference): Promise<any>;
static http_build_query(ctx: PHPContext | null, dataArg?: PHPReference, numericPrefixArg?: PHPReference, argSeparatorArg?: PHPReference): Promise<string>;
static header(ctx: PHPContext, headerStrArg?: any, replaceArg?: any, codeArg?: any): Promise<void>;
static setcookie(ctx: PHPContext, nameArg?: PHPReference, valueArg?: PHPReference, expiresArg?: PHPReference, pathArg?: PHPReference, domainArg?: PHPReference, secureArg?: PHPReference, httponlyArg?: PHPReference): Promise<boolean>;
static setrawcookie(ctx: PHPContext, nameArg?: PHPReference, valueArg?: PHPReference, expiresArg?: PHPReference, pathArg?: PHPReference, domainArg?: PHPReference, secureArg?: PHPReference, httponlyArg?: PHPReference): Promise<boolean>;
static header_remove(ctx: PHPContext, nameArg?: PHPReference): Promise<void>;
static headers_list(ctx: PHPContext): Promise<string[]>;
static headers_sent(ctx: PHPContext): Promise<boolean>;
static http_response_code(ctx: PHPContext, codeArg?: PHPReference): Promise<number | boolean>;
static functions: {
gethostname: typeof NetworkingRuntime.gethostname;
gethostbyname: typeof NetworkingRuntime.gethostbyname;
gethostbyaddr: typeof NetworkingRuntime.gethostbyaddr;
ip2long: typeof NetworkingRuntime.ip2long;
long2ip: typeof NetworkingRuntime.long2ip;
parse_url: typeof NetworkingRuntime.parse_url;
urlencode: (ctx: PHPContext, value?: PHPReference) => Promise<string>;
rawurlencode: (ctx: PHPContext, value?: PHPReference) => Promise<string>;
urldecode: (ctx: PHPContext, value?: PHPReference) => Promise<string>;
rawurldecode: (ctx: PHPContext, value?: PHPReference) => Promise<string>;
http_build_query: typeof NetworkingRuntime.http_build_query;
header: typeof NetworkingRuntime.header;
setcookie: typeof NetworkingRuntime.setcookie;
setrawcookie: typeof NetworkingRuntime.setrawcookie;
header_remove: typeof NetworkingRuntime.header_remove;
headers_list: typeof NetworkingRuntime.headers_list;
headers_sent: typeof NetworkingRuntime.headers_sent;
http_response_code: typeof NetworkingRuntime.http_response_code;
};
static register(engine: PHPEngine): void;
}