Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method for redirecting network request by iOS (Internet Operating System) by using AFNetworking

A network request and redirection technology, applied in the field of redirection

Active Publication Date: 2021-02-09
杭州动享互联网技术有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the current iOS native development uses AFNetworking for network requests, but AFNetworking cannot redirect network requests according to the needs of the project itself

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
  • Method for redirecting network request by iOS (Internet Operating System) by using AFNetworking

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034]The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0035]The embodiment of the present invention provides a method for iOS to use AFNetworking to redirect network requests, such asfigure 1Shown, including:

[0036]Step S1: Use iOS to request access to the network, AFNetworking calls the back-end interface;

[0037]Step S2: The back-end interface performs redirection, and returns back-end data including the network request code and the redirected interface address;

[0038]Step S3: The iOS side parses the back-end data, extracts the redirection status code, performs subsequent operations according to the redirection status code, and returns to the redirected interface address;

[0039]Step S4: AFNetworking performs network request redirection a...

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 provides a method for redirecting a network request by using AFNetworking through an iOS (iphone operating system), which comprises the following steps of: performing network request access by using an iOS end, and calling a back-end interface by the AFNetworking; redirecting the back-end interface, and returning back-end data containing the network request code and the redirected interface address; the iOS terminal analyzing the rear-end data, extracting the redirection state code, and performing subsequent operation according to the redirection state code, and returning to theredirection interface address; and the AFNetwork performing network request redirection according to the redirected interface address, and requesting the redirected interface again. According to the method for redirecting the network request by the iOS through the AFNetworking, secondary encapsulation and transformation of the AFNetworking are carried out, so that the problem of network redirection can be solved after reencapsulation.

Description

Technical field[0001]The present invention relates to the technical field of redirection, in particular to a method for iOS to use AFNetworking to redirect network requests.Background technique[0002]Currently, the current iOS native development uses AFNetworking to make network requests, but AFNetworking cannot redirect network requests according to the project's own needs.Summary of the invention[0003]One of the objectives of the present invention is to provide a method for iOS to use AFNetworking to redirect network requests, which performs the secondary encapsulation and transformation of AFNetworking, so that the network redirection problem can be dealt with after repackaging.[0004]A method for iOS to use AFNetworking to redirect network requests provided in an embodiment of the present invention includes:[0005]Use iOS to request network access, AFNetworking calls the back-end interface;[0006]The back-end interface redirects and returns back-end data including the network reques...

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): H04L29/08
CPCH04L67/148H04L67/563
Inventor 程志恒许振
Owner 杭州动享互联网技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products