Interface request protocol improving method, equipment and computer readable storage medium
A computer program and interface technology, applied in the field of interface request protocol transformation and computer-readable storage media, can solve the problems of inability to further improve application running speed, time-consuming, and inability to optimize interface performance, so as to avoid short-board effects and improve The effect of running speed and improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0078] image 3 It is a flow chart of the first embodiment of the interface request protocol transformation method of the present invention. A method for modifying an interface request protocol, the method comprising:
[0079] S1. Cache the return value of the interface call on the terminal side;
[0080] S2. In the merge request of the interface, add the version number of the return value corresponding to the interface;
[0081] S3. Receive and respond to the push data from the server, wherein the interface return value of the server is consistent with the version number.
[0082] In this embodiment, firstly, the return value of the interface call on the terminal side is cached, then, in the merge request of the interface, the version number of the return value corresponding to the interface is added, and finally, the push data of the server side is received and responded , wherein the return value of the server-side interface is consistent with the version number.
[008...
Embodiment 2
[0102] Figure 4 It is a flow chart of the second embodiment of the interface request protocol modification method of the present invention. Based on the above embodiment, the return value of the interface call on the cache terminal side includes:
[0103] S11. Transforming the request mechanism of the terminal side to the merging interface;
[0104] S12. Generate a corresponding number of threads according to the number of merged interfaces;
[0105] S13. Wait for the return value through the thread.
[0106] In this embodiment, firstly, the request mechanism for the merging interface on the terminal side is modified, then a corresponding number of threads is generated according to the number of merging interfaces, and finally, the return value is waited for through the threads.
[0107] As mentioned in the above example, the mobile phone side caches the return value of the interface call, and the version number of the current local cache value of each interface will also b...
Embodiment 3
[0114] Figure 5 It is a flow chart of the third embodiment of the interface request protocol transformation method of the present invention. Based on the above embodiment, the version number of the return value corresponding to the interface added to the merge request of the interface includes:
[0115] S21. On the server side, add a number value and a count value of interfaces to the protocol of the merge request, wherein the communication link is maintained within the number number;
[0116] S22. On the terminal side, generate a corresponding number of threads according to the number of merged interfaces, and wait for the return value through the threads.
[0117] In this embodiment, firstly, on the server side, add the number value and count value of the interface in the protocol of the merge request, wherein the communication link is maintained within the number value, and then, at the terminal On the side, generate a corresponding number of threads according to the number...
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