saraf/async-request-snitch 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

saraf/async-request-snitch

Composer 安装命令:

composer require saraf/async-request-snitch

包简介

README 文档

README

It's a really simple api based proxy to bypass sanctions or anything else like that!

How to deploy?

Docker

This project is shipped with Dockerfile! Just build it with below command:

> docker build -t snitch-proxy .

CLI

First you should install php with composer. you need at least php 8 and above. Then run below commands to start project:

> composer install
> php server.php

How to use?

It works in any language you think of. Just replace the url and put it in X-Proxy-To header. for example in curl:

curl --location 'http://127.0.0.1:9898' \
--header 'X-Proxy-To: https://jsonplaceholder.typicode.com/todos/200' \
--header 'X-Proxy-Config: {"timeout": 1}'

additional configurations should go into X-Proxy-Config. config values are:

{
  "timeout": 10,
  "followRedirects": true
}
  1. timeout: the maximum time to wait for response from destination address
  2. followRedirects: enable or disable follow redirects

统计信息

  • 总下载量: 2.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固