Read HTTP request [HttpServletRequest]

1. Understand the method System.out.println("Request protocol name:"+req.getProtocol()); System.out.println("Request method:"+req.getMethod()); System.out.println("Application context path/App Name:"+req.getContextPath()); System.out.println("Resource path/servletPath: "+req.getServletPath()); System.out.println("The key in the request h ...

Added by blacksharkmedia on Wed, 23 Feb 2022 11:57:16 +0200

pprof actual combat - memory leak

scene Multiple services are running in one server. After running for a period of time (less than one day), it is found that a process occupies more than 50% of memory resources, resulting in server exceptions Solution First, start pprof performance analysis in the code runtime.SetBlockProfileRate(1) go func() { log.Println(http.ListenAnd ...

Added by shaoen01 on Wed, 23 Feb 2022 10:21:02 +0200

04 sentinel authorization rules

Authorization rules Authorization rules can judge and control the source of the requester. Authorization rules Basic rules Authorization rules can control the source of the caller in two ways: white list and blacklist. White list: callers whose source is in the white list are allowed to access Blacklist: callers whose origin is in t ...

Added by smarthouseguy on Sun, 20 Feb 2022 11:19:52 +0200

Linux network programming - VII

1. Preparation for web server development In order to write a web server, we need to learn how to write html pages and master some knowledge of http protocol. These two parts will be introduced next. After these two preparations, you also need to know what is the communication process of the web server? We also need to think about how to s ...

Added by 758 on Sun, 20 Feb 2022 00:39:40 +0200

wx tripartite payment + QR code generation

Code example preface This paper mainly introduces the internal payment process of wechat applet. However, in fact, wechat applet has certain limitations, that is, the scope of users is limited to the internal ecosystem of the applet. The payment method that is truly extensive, efficient and convenient in life must also be code scanning paymen ...

Added by SteveFrost on Sat, 19 Feb 2022 18:09:26 +0200

Private toolset 7 -- Token timeliness verification in webapi

Confucius said: if a worker wants to do well, he must sharpen his tools first github: https://github.com/redAntCpp/CSharpTools Next to the previous article, the previous article only realizes the generation and parsing of token, and incidentally mentions the verification mechanism. However, in actual business, it is usually necessary to ver ...

Added by shah on Sat, 19 Feb 2022 17:44:55 +0200

Video streaming with flash

Video streaming with flash Flash video stream Streaming -- streaming It enables flash applications to effectively break large responses into small pieces over a long period of time. To illustrate this topic, I'll show you how to build a real-time video streaming server!   What is Streaming? (what is streaming media?) Streaming is a ...

Added by biffjo on Sat, 19 Feb 2022 15:59:50 +0200

Latest JSON API specification (v1.0)

JSON:API — Latest Specification (v1.0) Latest specification (v1.0) state This page shows the latest released version of JSON:API, which is currently version 1.0. The new version of JSON:API will always be used, will never be deleted, and only add policies that are backward compatible. Can be in our discuss The district made a supplement. ...

Added by rdog157h on Sat, 19 Feb 2022 15:30:28 +0200

Using feign as the client to call remote http service in spring boot

Feign introduction A central concept supported by feign of pring Cloud is named client Feign client uses @ feign client to register and assemble components and call remote server on demand Spring Cloud uses FeignClientsConfiguration to create a new collection as the ApplicationContext (application context) of each named client, including feign ...

Added by imcookie on Thu, 17 Feb 2022 21:28:06 +0200

Alios things 3.3.0: http component introduction

summary HTTP(HyperText Transfer Protocol) is an application layer protocol used to transfer hypertext. The network protocol stack of AliOS Things includes HTTP components and provides HTTP client standard capabilities. Developers can quickly realize data interaction with the server through HTTP GET, POST and other methods on the device side ...

Added by Toxinhead on Thu, 17 Feb 2022 20:45:43 +0200