Thrift-Swift icon indicating copy to clipboard operation
Thrift-Swift copied to clipboard

Swift-Nio lightweight HTTPServer implementation

Open JacopoMangiavacchi opened this issue 6 years ago • 2 comments

I've create a lightweight HTTPServer support using Swift-Nio.

Source code here: https://github.com/JacopoMangiavacchi/thrift-swift-nio

I've only implemented HTTP transport but it's very easy to extend to Raw Socket too.

If you're interested I can open a Pull Request adding these few classes to this repo.

Best, -Jacopo

JacopoMangiavacchi avatar Mar 07 '18 18:03 JacopoMangiavacchi

Hey @JacopoMangiavacchi Thanks a lot! That looks awesome. So the standard Thrift practice so far is to only include in the Thrift library servers that are in the given languages' standard library, servers requiring external 3rd party libraries can be created as Thrift Servers but should be kept separate. If you'll note I have the TPerfectServer and TZewoServer separate for that purpose. I'd love for you to add a note to the README however so we can have a default listing of what Servers are available until we get some standard library servers in Swift (which should be soon I hope!)

apocolipse avatar Apr 03 '18 05:04 apocolipse

Sure thing @apocolipse I'll add this to the readme

JacopoMangiavacchi avatar Apr 03 '18 19:04 JacopoMangiavacchi