Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Interface request retransmission method and device

A technology of request retransmission and interface, applied in the computer field, can solve the problem of inability to realize automatic retransmission of ajax requests

Pending Publication Date: 2021-06-04
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present invention provides a method and device for resending an interface request, which can at least solve the problem that the automatic resending of an ajax request cannot be realized in the existing

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
  • Interface request retransmission method and device
  • Interface request retransmission method and device
  • Interface request retransmission method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0048] see figure 1 , which shows the main flowchart of a method for resending an interface request provided by an embodiment of the present invention, including the following steps:

[0049] S101: Send a request to the server, receive a request failure message fed back by the server, and obtain a retransmission times threshold corresponding to the interface sending the r...

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 invention discloses an interface request retransmission method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: sending a request to a server, receiving a request failure message fed back by the server, and obtaining a retransmission time threshold corresponding to an interface sending the request; determining the number of retransmission times of the current request, and if the number of retransmission times is smaller than the retransmission time threshold value, obtaining a retransmission interval time threshold value corresponding to the interface; and based on the retransmission interval time threshold and the remaining retransmission times, determining the retransmission interval time of the request at this time, so as to carry out request retransmission operation when the retransmission interval time is reached. According to the embodiment, two parameters of retransmission times and retransmission interval time are set for the interface, and automatic retransmission of the ajax request is realized; in addition, the retransmission interval time with the retransmission frequency larger than one time can be adjusted according to the updating strategy, and the flexibility of request retransmission is achieved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for resending an interface request. Background technique [0002] Most of the final product form of the web front-end depends on the browser. As the ajax (Asynchronous Javascript And XML, asynchronous JavaScript and XML) request communication commonly used by browsers, axios is currently the most widely used ajax library. Web front-end developers use the ajax library to initiate an ajax request to communicate with the server to complete additions, deletions, and modifications to data or interfaces. [0003] In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: [0004] When the network environment is not good or the server is in an unstable situation, it is easy to cause ajax request error, and the existing axios library lacks the function of automatic resending of ajax request...

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 Applications(China)
IPC IPC(8): G06F16/958
CPCG06F16/958
Inventor 王奇
Owner BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products