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

Network request method, storage medium, electronic device and system of ios system

A network request and self-definition technology, which is applied in software engineering design, electrical digital data processing, creation/generation of source code, etc., can solve the problems affecting the complexity, speed, program maintenance and scalability limitations of initiating network requests , to achieve the effect of quick and easy, increased maintainability and expansibility, and convenient processing

Active Publication Date: 2021-09-07
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing custom network request function directly uses the native system request function of the IOS system to initiate a network request. In this way, in case Apple’s API is modified, the entire project needs to be modified, and each class involved in the network request needs to be modified. , which affects the complexity and speed of initiating network requests, and limits the maintainability and scalability of the program

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 method, storage medium, electronic device and system of ios system
  • Network request method, storage medium, electronic device and system of ios system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0076] The embodiment of the present invention discloses a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method in Embodiment 1 is realized.

Embodiment 3

[0078] The embodiment of the present invention discloses an electronic device, which includes a memory and a processor, wherein a computer program running on the processor is stored in the memory, and the method of Embodiment 1 is realized when the processor executes the computer program.

Embodiment 4

[0080] see figure 2 As shown, the embodiment of the present invention discloses a network request system of an IOS system, including:

[0081] Create modules, which are used to create custom network request functions and custom network request tool classes;

[0082] Calling module, which is used for: calling a custom network request function and a custom network request tool class when a network request needs to be initiated;

[0083] The custom network request function processes the parameters passed in by the application that needs to initiate a network request, and generates a network request address;

[0084] The custom network request tool class judges and stitches the parameters carrying file information when uploading files, and generates the object of file information;

[0085] The self-defined network request tool class calls the network request function that comes with the IOS system, uses the network request address generated by the self-defined network request f...

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 a network request method, storage medium, electronic equipment and system of an IOS system, and relates to the technical field of Internet mobile terminal applications. The invention creates a self-defined network request function and a self-defined network request tool class, When you need to send a network request, you only need to call the custom network request function and the custom network request tool class input parameters to initiate a network request and obtain the result of the network request, realizing the process of completing the network request quickly and easily. The present invention abstracts and encapsulates some details of parameter processing in the network request, and only needs to obtain the parameters passed in by the application program that needs to initiate the network request; at the same time, the IOS system is called at the bottom layer of the self-defined network request tool class If you want to add or modify parameters for the network request, you only need to modify the parameters of the custom network request tool class to increase the maintainability and scalability of the program.

Description

technical field [0001] The invention relates to the technical field of Internet mobile terminal applications, in particular to a network request method, a storage medium, electronic equipment and a system of an IOS system. Background technique [0002] A custom network request function is an essential function for mobile apps, and it is also an essential function for the Internet industry. The existing custom network request function directly uses the native system request function of the IOS system to initiate a network request. In this way, in case Apple’s API is modified, the entire project needs to be modified, and each class involved in the network request needs to be modified. , which affects the complexity and speed of initiating network requests, and limits the maintainability and scalability of the program. Contents of the invention [0003] Aiming at the defects existing in the prior art, the purpose of the present invention is to provide a network request metho...

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): G06F8/30
CPCG06F8/315
Inventor 汪刚张文明陈少杰
Owner WUHAN DOUYU NETWORK 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