Method and device called by http interface

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

Active Publication Date: 2021-04-30
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 0 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 called by http interface
  • Method and device called by http interface
  • Method and device called by 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 embodiments of the present invention provide a method and device for invoking an HTTP interface, which can solve the problems of high code coupling and poor flexibility, maintainability, and readability during the development process using a third-party toolkit. The method includes: when the client is started, scanning the hypertext transfer protocol HTTP interface according to the configuration class path and the package path to obtain the callable HTTP interface; performing agent 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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08H04L29/06
CPCH04L65/1073H04L67/02H04L67/34H04L67/561H04L67/133
Inventor 秦勇
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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
Try Eureka
PatSnap group products