Source code analysis of golang reverse proxy
This article is reproduced from: Source code analysis of golang reverse proxy [source code attached]_ Dream siege lion_ 51CTO blog
1 example of reverse proxy based on reverse proxy
package main
import (
"log"
"net/http"
"net/http/httputil"
"net/url"
)
func main() {
// Address rewrite instance
// http://127.0.0.1:8888/t ...
Posted on Sun, 05 Dec 2021 17:34:54 -0500 by MerlinJR
HTML+CSS Foundation (solve the problem of high collapse)
High collapse problem caused by element separation from document flow
1. Problem Description: In the document flow, the height of the parent element is supported by the child element by default, that is, how high the child element is, how high the parent element is. However, when the child element is set to float, the child element will be ...
Posted on Sat, 04 Dec 2021 15:42:40 -0500 by simona_85
FastDFS distributed file system
Chapter 1 Introduction to FastDFS
1.1 distributed file system
Distributed file system is a software / software server, which can be used to manage files. However, the files managed by this software are usually not on one server node, but on multiple server nodes. These server nodes are connected through the network to form a huge file storage s ...
Posted on Sun, 28 Nov 2021 15:47:03 -0500 by natasha_thomas
Go Web framework Gin source code structure analysis
You can read this article before you read it Last article , have an understanding of the core components of the Web framework.Directory structure of source codeTaking v1.7.4 as an example, the source directory structure of Gin is shown in the figure below+---.github
| ISSUE_TEMPLATE.md
| PULL_REQUEST_TEMPLATE.md
|
+---binding ...
Posted on Fri, 26 Nov 2021 23:04:27 -0500 by Mystis
Echarts quick start line chart
Basic line chart
Simple line chart
If we want to create a line chart with category abscissa and value ordinate, we can use this method:
option = {
xAxis: {
type: "category",
data: ["a", "b", "c"],
},
yAxis: {
type: "value",
},
series: [
{
type: "line",
data: [1, 2, 3],
},
],
};
Just set the typ ...
Posted on Wed, 24 Nov 2021 08:39:47 -0500 by lavender
Object oriented II (method, encapsulation, this, recursion, javaBean concept, static concept, singleton pattern)
Methods and packaging
Basic concepts of construction method
When the constructor name is exactly the same as the class name, there is no return value type, and void cannot be used.
class Class name{ class Person{
Class name(parameter list ){ Person(){ // The Person method is the constructor of the Person class
Constructio ...
Posted on Tue, 23 Nov 2021 04:12:02 -0500 by brodwilkinson
Spring Principle in-depth 01: What is Spring? Spring Basic Mechanisms? IOC? AOP
01-What is Spring?
Spring is a lightweight framework, and you will have a lot of unknown terms after Baidu, but these are not important. It is important to understand what changes Spring can make to your daily development, that is
02-What does Spring do?
Spring is used to manage objects for us. The change Spring brings to us is that we don't ...
Posted on Thu, 11 Nov 2021 11:45:01 -0500 by mydimension
WebRTC series - mobile terminal hardware coding supports Simulcast
Write at the beginning: This article extends from Simulcast This article, this article has only written a general idea, and the implementation details are described in detail here; The following functions are implemented in the M76 version of the source code.
Implementation of simulcast in H264EncoderImpl
In the native source code of WebRTC o ...
Posted on Wed, 10 Nov 2021 14:44:25 -0500 by valerie19
Complete analysis of Boolean blind injection of SQL injection
Injection principle
Boolean blind annotation is applicable when there is no echo during injection. The principle is that the application system makes Boolean judgment when querying according to the where+and statement, that is, the result is true or false, for example, select * from admin where id=1 and 1=1. In general, the application sys ...
Posted on Sat, 06 Nov 2021 00:49:00 -0400 by slak
web technology sharing | React version anyRTC example peer-to-peer connection
preface
Hello, I have published a lot of knowledge about WebRTC in the past and many audio and video communication examples developed based on anyRTC WebSDK, which have been highly praised by many developers. In the past examples, the author is based on Vue framework, and there is a private letter from a small partner in the background. I hope ...
Posted on Tue, 26 Oct 2021 00:34:47 -0400 by sgboise