curlconverter:将curl命令转换为Python,JavaScript,PHP,R,Go,Rust,Dart,JSON,Ansible,Elixir

时间:2024-03-15 22:14:05
【文件属性】:

文件名称:curlconverter:将curl命令转换为Python,JavaScript,PHP,R,Go,Rust,Dart,JSON,Ansible,Elixir

文件大小:301KB

文件格式:ZIP

更新时间:2024-03-15 22:14:05

curl metaprogramming code-generation curl-commands JavaScript

将cURL语法转换为原生Python,Go,PHP,JavaScript,R,Elixir和Dart HTTP代码 现场演示 安装 $ npm install --save curlconverter 用法 var curlconverter = require ( 'curlconverter' ) ; curlconverter . toPython ( "curl 'http://en.wikipedia.org/' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chro


网友评论