【文件属性】:
文件名称:hs-cors-proxy:Hassell实现Cors-anywhere样式的CORS代理
文件大小:13KB
文件格式:ZIP
更新时间:2021-04-04 01:35:35
Haskell
Haskell CORS代理
Haskell反向代理,它将CORS标头添加到代理请求中。
启发。
用法:
构建并运行:
$ stack install
$ hs-cors-proxy
Starting proxy on 8222...
要查询,只需将代理URL前缀到HTTP调用之前,即http://example.com/ > localhost:8222/http://example.com/ :
$ curl localhost:8222/http://example.com/
<!doctype html>
<html>
<head>
<title>Example Domain</title>
...
【文件预览】:
hs-cors-proxy-master
----.gitignore(12B)
----src()
--------ReverseProxy.hs(3KB)
--------Network()
----stack.yaml.lock(447B)
----license(1KB)
----hs-cors-proxy.cabal(1KB)
----readme.md(508B)
----package.yaml(617B)
----stack.yaml(35B)