Giter Site home page Giter Site logo

dressupgeekout / cadet Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 30 KB

Minimal Lua/bozohttpd interface

Home Page: http://dressupgeekout.com/cadet

License: BSD 2-Clause "Simplified" License

Lua 67.08% HTML 30.46% Makefile 2.46%
bozohttpd bsd lua netbsd

cadet's People

Contributors

dressupgeekout avatar travispaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

travispaul

cadet's Issues

Build a pkgsrc package

I need to sit down and write a pkgsrc Makefile for this thing.

At the very least this will prevent needless dofile() calls in my example scripts.

io.write over TLS/SSL

I've encountered ad issue while trying to use Cadet, and I'm looking for some guidance on the best solution.

In order to use Lua scripting with bozohttpd over SSL, you must use httpd.write() and httpd.print() as those functions will use bozohttpd's ssl functions when appropriate, however you cannot require 'httpd' in cadet.lua, only in the initial script.

Would you be open to requiring httpd in cadet.lua and replacing the io.writewith httpd.write? I believe Cadet will then work over SSL using dofile(). If so, I can make the change, do more testing and create a pull-request.

Do you know of another approach that could be used? Ultimately I think the scripting interface to Lua needs to be changed to remove the need for the httpd module, but that will require some more in-depth discussions.

Thanks for the feedback!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.