Unlock instant, AI-driven research and patent intelligence for your innovation.

Network request control method, device and terminal equipment

A technology of network request and control method, applied in the direction of transmission system, electrical components, etc., can solve the problem of low control efficiency, and achieve the effect of improving control efficiency

Active Publication Date: 2022-04-12
XIAMEN MEITUZHIJIA TECH
View PDF22 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the inventor found that in the prior art, it is still necessary to set the corresponding interceptor Interceptor for each initialized OkHttpClient in plain text, if subsequent business development defines a new OkHttpClient without adding an interceptor, it will still access Network, the request will not be intercepted, and some third-party SDKs run automatically after the App process is created, and are not controlled by the logic of App development, so there is a problem of low control efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Network request control method, device and terminal equipment
  • Network request control method, device and terminal equipment
  • Network request control method, device and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0049] Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art w...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The network request control method, device and terminal equipment provided by the embodiments of the present invention relate to the technical field of network request control. The network request control method includes: acquiring a first URL, and initiating a network request according to the first URL; judging whether an instruction of the user agreeing to networking is received, wherein the instruction of the user agreeing to networking is based on the terminal device responding to the user's Operation generation; if receiving an instruction that the user agrees to networking, then judge whether the first URL belongs to the preset blacklist; if the first URL does not belong to the preset blacklist, then perform a preset operation, wherein the preset Operations include performing networking processing according to the network request. Through the above method, the control efficiency of the network request can be improved.

Description

technical field [0001] The present application relates to the technical field of network request control, in particular, to a network request control method, device and terminal equipment. Background technique [0002] In practical applications, it is necessary to control the switch of the App network request or to stop a certain or a certain type of network request in a targeted manner. In App development, you can use the OkHttp network component to add an interceptor Interceptor to each instantiated OkHttpClient before initiating a network request. When the isNetworkTrafficAllowed variable in the interceptor is false, the request initiated by the OkHttpClient will directly return response code= HTTP_BAD_REQUEST to abort the process. If the isNetworkTrafficAllowed is true, initiate a networking request. [0003] However, the inventor found that in the prior art, it is still necessary to set the corresponding interceptor Interceptor for each initialized OkHttpClient in pla...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/14H04L67/141H04L67/142H04L67/146
CPCH04L67/14H04L67/141H04L67/142H04L67/146
Inventor 陈鸿图阮永丽
Owner XIAMEN MEITUZHIJIA TECH