Servlet--HttpServletRequest to obtain the detailed explanation of request information (request header, request line and parameters)
Overview of ttpServletRequest object In the Servlet API, an HttpServletRequest interface is defined, which inherits from the ServletReauest interface and is specially used to encapsulate HTTP request messages. Since the HTTP request message is divided into three parts: request line, request header and request message body, the relevant methods ...
Posted by Sassy34 on Fri, 17 Dec 2021 04:56:54 +0100
30 seconds to start the new generation of Http request artifact RxHttp, IDEA is too strong
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies { implementation 'com.github.liujingxing.rxhttp:rxhttp:2.6.0' implementation ‘com.squareup.okhttp3:okhttp:4.9.0’ //rxhttp v2. Since version 2.2, you need to manually rely on okhttp kapt ‘com.github.liujingxing.r ...
Posted by mbbout on Thu, 16 Dec 2021 07:10:31 +0100
2021SC@SDUSC BRPC source code analysis HTTP2
2021SC@SDUSC BRPC source code analysis (VIII) HTTP2
namespace brpc {
const char *HttpReasonPhrase(int status_code);
int ErrorCodeToStatusCode(int error_code);
static const int HTTP_STATUS_CONTINUE = 100;
static const int HTTP_STATUS_SWITCHING_PROTOCOLS = 101;
static const int HTTP_STATUS_OK ...
Posted by baudday on Sat, 11 Dec 2021 15:24:53 +0100
Apache ShenYu source code reading series - Http registration of the implementation principle of the registry
Apache ShenYu Is an asynchronous, high-performance, cross language, responsive API gateway.
In ShenYu gateway, the registration center is used to register the client information with ShenYu admin, and the admin synchronizes the information to the gateway through data synchronization. The gateway completes traffic filtering through these data ...
Posted by danelkayam on Tue, 07 Dec 2021 19:34:47 +0100
js regular expression
js regular expression
Add, delete, modify and check the string
Ant design example
:formatter="value => `$ ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser="value => value.replace(/\$\s?|(,*)/g, '')"
Simple sample
Common methods:
test: the return value is true or false
Match: returns an array of matching characters. If ...
Posted by Delqath on Mon, 29 Nov 2021 13:02:54 +0100
redisClient soTimeout occasionally does not take effect analysis
catalogue
background
Source code analysis
reference resources
background
In order to observe the call of redis conveniently, the general access component of redis is accessed. The project redis sets the socket timeout time to 200ms, and the maximum number of retries configured is 1. It is found that when the project calls redis, some sing ...
Posted by Alffallen on Sun, 28 Nov 2021 07:42:21 +0100
What do SSL, TLS, HTTP, HTTPS and SSH mean respectively?
HTTP + SSL/TLS = HTTPSSSL(Secure Sockets Layer)TLS(Transport Layer Security)HTTP(HyperText Transfer Protocol) enables clear text data exchange between computers. The default port is 80HTTPS(HyperText Transfer Protocol Secure) encrypts data with SSL/TLS, and then transmits it through HTTP to ensure data security. The default port is 443Differenc ...
Posted by Erik-NA on Sat, 27 Nov 2021 01:48:38 +0100
Alibaba cloud server adds an SSL certificate to the WordPress website and sets http to automatically jump to https
Add an SSL certificate to the WordPress website and set http to automatically jump to https
Download certificate to local
First, my certificate is an alicloud certificate. That is, the free certificate downloaded from this console. Of course, you can apply for it yourself. You'll end up with two files.
WordPress websites basically use ...
Posted by suspect_device on Tue, 23 Nov 2021 23:17:58 +0100
Java Web supplement: the difference between request forwarding, request inclusion and request redirection
Request forwarding
Request forwarding: after a request from the client arrives, it is found that other servlets are needed to realize the function.
The client browser sends a request to servlet a to realize some functions with the help of servlet a, but servlet a cannot complete this function. At this time, it finds that servlet B can real ...
Posted by mike_y on Fri, 19 Nov 2021 09:19:32 +0100
1 - [high performance Nginx server] - 8 HTTP dynamic load balancing
1 what is dynamic load balancing
In traditional load balancing, if the Upstream parameters change, the nginx.conf file needs to be reloaded every time, so the scalability is not very high. Therefore, we can adopt dynamic load balancing to realize the configurability and dynamics of Upstream without manually reloading nginx.conf.
This is simil ...
Posted by BigMonkey on Wed, 17 Nov 2021 02:06:55 +0100