Method and system for processing network requests
A network request and processing method technology, applied in the computer field, can solve problems such as limited optimization effects, and achieve the effects of reducing waiting time, low software development and maintenance costs, and reducing quantity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0080] Please refer to figure 1 and figure 2 , the first embodiment of the present invention is:
[0081] A network request processing method, comprising the steps of:
[0082] S1. The local proxy server receives network requests initiated by all network connection libraries in the local application, and determines whether the current state reaches the preset merged state. If so, merges the currently received N network requests, and obtains and sends the merged request. Data package, among which, the network connection library includes Socket, URLConnection and OkHttp, etc. The ip provided by the local proxy server is 127.0.0.1, and the port defaults to 9000. When the port has a conflict, it will automatically increase by one until there is no conflict;
[0083] In this embodiment, step S1 is specifically:
[0084] S11. The local proxy server receives network requests initiated by all network connection libraries in the local application;
[0085] S12, the local proxy ser...
Embodiment 2
[0122] Please refer to figure 1 , the second embodiment of the present invention is:
[0123] A network request processing method, on the basis of the above-mentioned first embodiment, step S1 and step S4 further include:
[0124] The local proxy server reads all request information of each network request, including request address, request alias, request data and business data;
[0125] After step S4, it also includes steps:
[0126] The local proxy server determines whether each network request is abnormal according to all the request information of each network request, and if so, stores all the abnormal request information;
[0127] When the local application starts, the local proxy server reports all the stored abnormal request information to the network request monitoring server.
[0128] Therefore, by setting the local proxy server, all the information requested by the network can be obtained in the local proxy service, and the monitoring requirements of all network...
Embodiment 3
[0129] Please refer to image 3 and Figure 4 , the third embodiment of the present invention is:
[0130] A network request processing system 1 includes a local proxy server 2 and a remote proxy server 5. The local proxy server 2 includes a first memory 4, a first processor 3, and is stored on the first memory 4 and can be stored in the first processor 3. A first computer program running on the remote proxy server 5 includes a second memory 7, a second processor 6 and a second computer program stored on the second memory 7 and running on the second processor 6, the first processing When the processor 3 executes the first computer program, the corresponding steps in the first embodiment or the second embodiment are realized; when the second processor 6 executes the second computer program, the corresponding steps in the first embodiment or the second embodiment are realized.
[0131] like image 3 and Figure 4 As shown, the local proxy server 2 is connected with the netwo...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com