博客
这里发布本站的最近动态
HTTP TCP 三次握手和四次挥手
   1 分钟阅读
TCP 三次捂手和四次挥手; TCP 连接的三次捂手 第一次握手:建立连接时, 客户端发送syn包(syn=j)到服务器,并进入到SYN_SEND状态;等待服
HTTP 状态码大全
   5 分钟阅读
当浏览者访问一个网页时,浏览者的浏览器会向网页所在服务器发出请求。当浏览器接收并显示网页前,此网页所在的服务器会返回一个包含 HTTP 状态码的信息头
Node.js rgpc 通信demo
   1 分钟阅读
前置安装 "@grpc/proto-loader": "^0.1.0", "grpc": "^1.11.0", 概念理解 https://grpc.io/docs/guides/ https://grpc.io/docs/quickstart/node/ helloworld.proto 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 syntax = "proto3";package helloworld;// The greeting service definition. service Greeter { // Sends a greeting rpc SayHello (HelloRequest) returns (HelloReply) {}}// The request message containing the user's name. message HelloRequest { string name = 1;}// The
在线测试跨域的方法
   1 分钟阅读
测试方案,在网页,打开控制台,如下代码 var token= "aaa"; var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://39.106.60.108:40619/api/market/token_status?token_account=0x000000000000000000000000000000000000000e'); xhr.setRequestHeader("x-access-token",token); xhr.send(null); xhr.onload = function(e) { var xhr = e.target; console.log(xhr.responseText); } var token= "aaa"; var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://stat.definer.cn/api/market/token_status?token_account=0x000000000000000000000000000000000000000e'); xhr.setRequestHeader("x-access-token",token); xhr.send(null); xhr.onload = function(e) { var xhr = e.target; console.log(xhr.responseText); } 如果是ngin
网站的访问过程
   2 分钟阅读
客户端:能够发起请求的都叫客户端;浏览器,移动浏览器,linux,curl,微信 QQ,等 服务端:能够接受请求的都是叫服务器,需要在特定的机器