elegant996 / scgi-transport Goto Github PK
View Code? Open in Web Editor NEWSCGI reverse proxy transport module for Caddy
License: Apache License 2.0
SCGI reverse proxy transport module for Caddy
License: Apache License 2.0
First, thanks for writing this module! I think for some users (I know one) your work will finally put Caddy on par with Nginx.
Right now the module expects the response to begin with headers:
Lines 172 to 176 in 826f05d
The format of the response is not specified by this protocol.
It practice, SCGI server implementation like the Wapp web framework often respond with a status line first (like HTTP/1.1 200 OK
), which makes them incompatible with the module. Could you handle this case?
This is just an FYI, we've recently merged some changes that will land in v2.4.0 that change a bit how you should invoke the Caddyfile unmarshaler for the rpHandler.
caddyserver/caddy@e4a22de#diff-6672fa0777d0d187809940a7d14eadf14ad36e4206c77f19822c67b668f1084c
In particular, you should add this bit of code after rpHandler.UnmarshalCaddyfile(dispenser)
err = rpHandler.FinalizeUnmarshalCaddyfile(h)
if err != nil {
return nil, err
}
This makes the new handle_response
feature parse correctly.
(As an aside, just out of curiosity, what do you use SCGI for? What language/scgi server do you use it with? I've never used the protocol myself)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.