目录

Network Kit

Change Type Old Version New Version d.ts File
API added NA

Class Name: connection;

API declaration: function getIpNeighTable(): Promise<Array<NetIpMacInfo>>;

Difference: function getIpNeighTable(): Promise<Array<NetIpMacInfo>>;

api/@ohos.net.connection.d.ts
API added NA

Class Name: connection;

API declaration: export interface NetIpMacInfo

Difference: export interface NetIpMacInfo

api/@ohos.net.connection.d.ts
API added NA

Class Name: NetIpMacInfo;

API declaration: ipAddress: NetAddress;

Difference: ipAddress: NetAddress;

api/@ohos.net.connection.d.ts
API added NA

Class Name: NetIpMacInfo;

API declaration: macAddress: string;

Difference: macAddress: string;

api/@ohos.net.connection.d.ts
API added NA

Class Name: NetIpMacInfo;

API declaration: iface: string;

Difference: iface: string;

api/@ohos.net.connection.d.ts
API added NA

Class Name: http;

API declaration: export enum InterceptorType

Difference: export enum InterceptorType

api/@ohos.net.http.d.ts
API added NA

Class Name: InterceptorType;

API declaration: INITIAL_REQUEST = 'INITIAL_REQUEST'

Difference: INITIAL_REQUEST = 'INITIAL_REQUEST'

api/@ohos.net.http.d.ts
API added NA

Class Name: InterceptorType;

API declaration: REDIRECTION = 'REDIRECTION'

Difference: REDIRECTION = 'REDIRECTION'

api/@ohos.net.http.d.ts
API added NA

Class Name: InterceptorType;

API declaration: CACHE_CHECKED = 'READ_CACHE'

Difference: CACHE_CHECKED = 'READ_CACHE'

api/@ohos.net.http.d.ts
API added NA

Class Name: InterceptorType;

API declaration: NETWORK_CONNECT = 'CONNECT_NETWORK'

Difference: NETWORK_CONNECT = 'CONNECT_NETWORK'

api/@ohos.net.http.d.ts
API added NA

Class Name: InterceptorType;

API declaration: FINAL_RESPONSE = 'FINAL_RESPONSE'

Difference: FINAL_RESPONSE = 'FINAL_RESPONSE'

api/@ohos.net.http.d.ts
API added NA

Class Name: http;

API declaration: export interface HttpRequestContext

Difference: export interface HttpRequestContext

api/@ohos.net.http.d.ts
API added NA

Class Name: HttpRequestContext;

API declaration: url: string;

Difference: url: string;

api/@ohos.net.http.d.ts
API added NA

Class Name: HttpRequestContext;

API declaration: header: Object;

Difference: header: Object;

api/@ohos.net.http.d.ts
API added NA

Class Name: HttpRequestContext;

API declaration: body: Object;

Difference: body: Object;

api/@ohos.net.http.d.ts
API added NA

Class Name: http;

API declaration: export type ChainContinue = boolean;

Difference: export type ChainContinue = boolean;

api/@ohos.net.http.d.ts
API added NA

Class Name: http;

API declaration: export interface HttpInterceptor

Difference: export interface HttpInterceptor

api/@ohos.net.http.d.ts
API added NA

Class Name: HttpInterceptor;

API declaration: interceptorType: InterceptorType;

Difference: interceptorType: InterceptorType;

api/@ohos.net.http.d.ts
API added NA

Class Name: HttpInterceptor;

API declaration: interceptorHandle(reqContext: HttpRequestContext, rspContext: HttpResponse): Promise<ChainContinue>;

Difference: interceptorHandle(reqContext: HttpRequestContext, rspContext: HttpResponse): Promise<ChainContinue>;

api/@ohos.net.http.d.ts
API added NA

Class Name: http;

API declaration: export class HttpInterceptorChain

Difference: export class HttpInterceptorChain

api/@ohos.net.http.d.ts
API added NA

Class Name: HttpInterceptorChain;

API declaration: public getChain(): HttpInterceptor[];

Difference: public getChain(): HttpInterceptor[];

api/@ohos.net.http.d.ts
API added NA

Class Name: HttpInterceptorChain;

API declaration: public addChain(chain: HttpInterceptor[]): boolean;

Difference: public addChain(chain: HttpInterceptor[]): boolean;

api/@ohos.net.http.d.ts
API added NA

Class Name: HttpInterceptorChain;

API declaration: public apply(httpRequest: HttpRequest): boolean;

Difference: public apply(httpRequest: HttpRequest): boolean;

api/@ohos.net.http.d.ts
API added NA

Class Name: policy;

API declaration: function showAppNetPolicySettings(context: Context): Promise<void>;

Difference: function showAppNetPolicySettings(context: Context): Promise<void>;

api/@ohos.net.policy.d.ts
API added NA

Class Name: TLSConnectOptions;

API declaration: timeout?: number;

Difference: timeout?: number;

api/@ohos.net.socket.d.ts
API added NA

Class Name: statistics;

API declaration: export interface NetStatsInfo

Difference: export interface NetStatsInfo

api/@ohos.net.statistics.d.ts
API added NA

Class Name: NetStatsInfo;

API declaration: rxBytes: number;

Difference: rxBytes: number;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: NetStatsInfo;

API declaration: txBytes: number;

Difference: txBytes: number;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: NetStatsInfo;

API declaration: rxPackets: number;

Difference: rxPackets: number;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: NetStatsInfo;

API declaration: txPackets: number;

Difference: txPackets: number;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: statistics;

API declaration: export interface NetworkInfo

Difference: export interface NetworkInfo

api/@ohos.net.statistics.d.ts
API added NA

Class Name: NetworkInfo;

API declaration: type: NetBearType;

Difference: type: NetBearType;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: NetworkInfo;

API declaration: startTime: number;

Difference: startTime: number;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: NetworkInfo;

API declaration: endTime: number;

Difference: endTime: number;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: NetworkInfo;

API declaration: simId?: number;

Difference: simId?: number;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: statistics;

API declaration: function getSelfTrafficStats(networkInfo: NetworkInfo): Promise<NetStatsInfo>;

Difference: function getSelfTrafficStats(networkInfo: NetworkInfo): Promise<NetStatsInfo>;

api/@ohos.net.statistics.d.ts
API added NA

Class Name: VpnConnection;

API declaration: protectProcessNet(): Promise<void>;

Difference: protectProcessNet(): Promise<void>;

api/@ohos.net.vpnExtension.d.ts