Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and device for calling HTTP interface

A technology of interface calling and interface, applied in the computer field, can solve the problems of high code coupling, flexibility, maintainability and readability, etc., and achieve the effect of clear business logic, strong maintainability and improved efficiency

Active Publication Date: 2018-11-02
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In view of this, the embodiment of the present invention provides a method, device, electronic device, and readable medium for calling an HTTP interface, which can solve the problem of high code coupling, flexibility, and maintainability during the development process using a third-party toolkit. Sexuality and poor readability

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 and device for calling HTTP interface
  • Method and device for calling HTTP interface
  • Method and device for calling HTTP interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] 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.

[0037] Because the technical solution of the embodiment of the present invention adopts HTTP service-oriented interface programming, that is, the business of the remote server that the client depends on is first extracted as an interface, and the business of the remote server is specifically realized through the implementation class of the interface. When the server realize...

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 embodiment of the invention provides a method and device for calling a HTTP interface, which can solve the problems of high code coupling and poor flexibility, maintainability and readability in the process of developing with a third-party toolkit. The method for calling the HTTP interface comprises the following steps: scanning the HTTP interface of hypertext transfer protocol according to aconfiguration class path and a package path when a client starts up, so as to obtain a callable HTTP interface; and performing proxy registration on the callable HTTP interface.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and a device for invoking an HTTP interface. Background technique [0002] HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol) is a set of rules for computers to communicate through the network. When the client calls the server, the server provides an HTTP interface, and the client needs to write different hardware based on different URLs and request parameters. Code, at this time, if there are many different interfaces, you need to write a separate HTTP request code for each interface, which is very inflexible. [0003] At present, the most common solution is to provide a public request tool class. When using third-party data in daily development, the third party may provide several ways to obtain data, such as HTTP and remote calling. Usually the HTTP method is the simplest and most favored by developers. When using the HTTP method to obtain data, you ne...

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
IPC IPC(8): H04L29/08H04L29/06
CPCH04L65/1073H04L67/02H04L67/34H04L67/561H04L67/133
Inventor 秦勇
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More