HTTPX: a new generation of network request library that is better than others and comparable to requests

As a new generation of network request library, HTTPX It not only supports all operations of requests, but also supports asynchronous API and HTTP/2. According to the description on the official website, the following features are summarized: Standard synchronous interface and asynchronous supportHTTP/1.1 and HTTP/2Make requests directly to WS ...

Posted by wookie on Tue, 01 Feb 2022 15:41:57 +0100

OKHttp uses Interceptor POST and GET methods to uniformly encapsulate and pass public parameters

In the process of using retrofit networking development, we will encounter API. Every request data will have the same public parameters. For example: User ID: 1111111Device unique ID: 132131290Client version number: 2.3.0Wait for some parameters However, there are two ways to request: Post and get. I basically use the get request method in the ...

Posted by Tewl on Mon, 31 Jan 2022 19:30:29 +0100

JAVA network programming

Network programming 1. Network foundation TCP/IP protocol generally refers to the internet protocol. Only computers using TCP/IP protocol can connect to the Internet. 1.1 IP address In the Internet, an IP address is used to uniquely identify a Network Interface. A computer connected to the Internet must have one IP address, but it may also ...

Posted by vh3r on Sat, 29 Jan 2022 12:31:45 +0100

Python notes 13 (Web Development)

20. Web development CS architecture: C refers to the Client, and the software runs on the desktop; S refers to the Server, and the database runs on the Server. CS architecture is not suitable for the Web. The biggest reason is that the modification and upgrading of Web applications are very fast, and CS architecture requires each client to up ...

Posted by Digimatt on Fri, 28 Jan 2022 23:45:57 +0100

Yum is too slow to bear? That's because you didn't

preface yum is a Shell front-end package manager in Fedora, RedHat and SUSE. Based on RPM package management, it can automatically download and install RPM packages from the specified server, automatically handle dependencies, and install all dependent software packages at one time without tedious downloading and installation. We usually u ...

Posted by damisi on Thu, 27 Jan 2022 08:19:35 +0100

Python Http request asynchronous return (multithreaded)

preface Sometimes we may encounter such a situation. We have a function that provides an http interface. We need to send a request to the http interface to start the service, but the service function may be executed for a long time. In this way, if the request result is returned after the function is executed, the request may timeout. client ...

Posted by Richard Bowser on Tue, 25 Jan 2022 12:16:37 +0100

Netty framework learning -- HTTP/HTTPS application based on netty

Secure applications via SSL/TLS SSL and TLS security protocols are superimposed on other protocols to achieve data security. To support SSL/TLS, Java provides javax net. SSL package, its SSLContext and SSLEngine classes make the implementation of decryption and encryption quite simple. Netty implements this API through a ChannelHandler calle ...

Posted by tmed on Tue, 25 Jan 2022 03:10:09 +0100

ESPIDF development ESP32 learning notes [HTTP client implementation]

TCP protocol stack ESP uses lwIP as embedded TCP/IP protocol stack support lwIP is a set of IP protocol stack implemented in C at MCU level, which can run on bare metal / RTOS / Embedded Linux. Lexin provides relevant porting packages for ESP32 For relevant contents, please refer to LwIP library functions, which are supported in LwIP and ESP ...

Posted by JCScoobyRS on Mon, 24 Jan 2022 16:38:13 +0100

The hardest core of the station, one million words strong liver, RocketMq source code is hot and updated~

In this way, we have basically finished reading the Configuration class. This is a congestion model with a lot of content. Next, go back to NamesrvController. Under the Configuration class, the FileWatchService class is declared. From the outside, it should be a file reading service. Go in and have a look: org.apache.rocketmq.srvutil.File ...

Posted by jingcleovil on Thu, 20 Jan 2022 17:01:25 +0100

Wanfu welcomes the sprouting tiger, wanhu celebrates the Spring Festival and the year of the tiger in 2022

preface 2022 is a auspicious year of the tiger. Welcome to the new year. In the new year, I hope to bring you good luck through "ten thousand tigers" and "ten thousand blessings". I wish you tiger and tiger vitality, smooth wind and smooth water, good life and rolling financial resources! Congratulations are over, and now w ...

Posted by JParishy on Wed, 19 Jan 2022 15:31:39 +0100