All Projects → justjavac → Proxy Www

justjavac / Proxy Www

Licence: unlicense
学会 Proxy 就可以为所欲为吗?对,学会 Proxy 就可以为所欲为!

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
es6
455 projects

Labels

Projects that are alternatives of or similar to Proxy Www

Lightsocks
⚡️一个轻巧的网络混淆代理🌏
Stars: ✭ 3,714 (+864.68%)
Mutual labels:  proxy
Proxy requests
a class that uses scraped proxies to make http GET/POST requests (Python requests)
Stars: ✭ 357 (-7.27%)
Mutual labels:  proxy
Dev Sidecar
开发者边车,github打不开,github加速,git clone加速,git release下载加速,stackoverflow加速
Stars: ✭ 163 (-57.66%)
Mutual labels:  proxy
Mapproxy
MapProxy is a tile cache and WMS proxy
Stars: ✭ 347 (-9.87%)
Mutual labels:  proxy
Rocky
Full-featured, middleware-oriented, programmatic HTTP and WebSocket proxy for node.js
Stars: ✭ 357 (-7.27%)
Mutual labels:  proxy
Xmrig Proxy
Monero (XMR) Stratum protocol proxy
Stars: ✭ 363 (-5.71%)
Mutual labels:  proxy
Tunneller
Allow internal services, running on localhost, to be accessed over the internet..
Stars: ✭ 346 (-10.13%)
Mutual labels:  proxy
Coin Hive Stratum
use CoinHive's JavaScript miner on any stratum pool
Stars: ✭ 380 (-1.3%)
Mutual labels:  proxy
Katana
A Python Tool For google Hacking
Stars: ✭ 355 (-7.79%)
Mutual labels:  proxy
Ssr Accounts
V2Ray, 免费V2Ray账号分享, 翻墙,无界, 自由门, SquirrelVPN, SS账号, 机场
Stars: ✭ 3,854 (+901.04%)
Mutual labels:  proxy
Proxy List
Get PROXY List that gets updated everyday
Stars: ✭ 347 (-9.87%)
Mutual labels:  proxy
Service Proxy
API gateway for REST and SOAP written in Java.
Stars: ✭ 355 (-7.79%)
Mutual labels:  proxy
Asuswrt Merlin Transparent Proxy
transparent proxy base on ss, v2ray, ipset, iptables, chinadns on asuswrt merlin.
Stars: ✭ 367 (-4.68%)
Mutual labels:  proxy
Athens
A Go module datastore and proxy
Stars: ✭ 3,736 (+870.39%)
Mutual labels:  proxy
Jwtproxy
An HTTP-Proxy that adds AuthN through JWTs
Stars: ✭ 379 (-1.56%)
Mutual labels:  proxy
Udpspeeder
A Tunnel which Improves your Network Quality on a High-latency Lossy Link by using Forward Error Correction, possible for All Traffics(TCP/UDP/ICMP)
Stars: ✭ 3,699 (+860.78%)
Mutual labels:  proxy
Sidekick
High Performance HTTP Sidecar Load Balancer
Stars: ✭ 366 (-4.94%)
Mutual labels:  proxy
Make Fetch Happen
Get in loser, we're making requests!
Stars: ✭ 381 (-1.04%)
Mutual labels:  proxy
Memento
Memento is a development-only tool that caches HTTP calls once they have been executed.
Stars: ✭ 380 (-1.3%)
Mutual labels:  proxy
Telepresence
Local development against a remote Kubernetes or OpenShift cluster
Stars: ✭ 4,491 (+1066.49%)
Mutual labels:  proxy

proxy-www

学会 Proxy 就可以为所欲为吗?

对,学会 Proxy 就可以为所欲为!

const www = new Proxy(new URL('https://www'), {
    get: function get(target, prop) {
        let o = Reflect.get(target, prop);
        if (typeof o === 'function') {
            return o.bind(target)
        }
        if (typeof prop !== 'string') {
            return o;
        }
        if (prop === 'then') {
            return Promise.prototype.then.bind(fetch(target));
        }
        target = new URL(target);
        target.hostname += `.${prop}`;
        return new Proxy(target, { get });
    }
});

访问百度

www.baidu.com.then(response => {
    console.log(response.status);
    // ==> 200
})

使用 async/await 语法:

const response = await www.baidu.com

console.log(response.ok)
// ==> true

console.log(response.status);
// ==> 200
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].