Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

aagun1234/httproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

used for dify to access ctyun api, change stream to false from true

./httproxy -listen :8081 -target https://wishub-x1.ctyun.cn -req-body ""stream":?true::"stream": false" -resp-body ""message"::"delta""

or rewrite streaming response

./httproxy -listen :8080 -target https://wishub-x1.ctyun.cn -resp-body "data:{::data: {"

or insert response header

./httproxy -listen :8080 -target https://wishub-x1.ctyun.cn -resp-header 'NewHeader::*::$$DATETIME$$'

vars: $$DATETIME$$, $$TIME$$, $$DATE$$, $$YEAR$$, $$MONTH$$, $$DAY$$, $$HOUR$$, $$MINUTE$$, $$SECOND$$, $$REQUESTS$$, $$STARTTIME$$, $$RUNNINGTIME$$, $$ClientIP$$, $$CURRENTCONNS$$

About

simple http reverse proxy used to inspect and modify contents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages