The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.4.0

  • updated the metamodel to version 0.006.
  • added a "prohibiting" property to ACL rules so that these rules with "prohibiting" set to true can deny certain accesses specifically. Prohibiting rules have higher priority than ordinary "white rules".
  • refactored the server kernel and now the kernel is almost independent of the various handler classes, so the user can code up their own handler classes w/o modifying the OpenResty kernel.
  • added a frontend.handler option to the config file to allow the site runner specify exactly which handlers to be loaded to the server kernel.
  • added support for GET /=/version and GET /=/version/more.
  • now we only allow _user/_password/_use_cookie/_session/etc for builtin params.
  • no longer encode/decode stuff when the encoding is already UTF-8.
  • no longer die when metamodel's version mismatch (merely warn instead).
  • fixed the cache bug regarding DELETE_role_list.
  • do not check password in Role.pm and allow special chars in the password.
  • demo/Onccf - a new demo web site based on OpenResty
  • demo/Onccf - added the pod2html.js script, which is a JavaScript implementation for the pod2html script.
  • demo/Admin - always display every fields in the model row listing even if the value is an empty string
  • demo/Admin - now we have a more pretty login UI.
  • demo/Admin - now we use true POST for updating and inserting row values.
  • demo/Admin - fixed the page width of the model row view and also use POST for model row creation.
  • demo/Admin - fixed the newline to textarea mapping.
  • added a new script for saving metamodels for every account: bin/save-metamodel.pl.
  • added a new script named bin/restore-metamodel.pl for restoring metamodels saved by bin/save-metamodel.pl.
  • added a new script bin/tab2json.pl.
  • added view precompilation support:
  • a new CompiledView handler
  • commandline interface for compiling view invocation urls to the compiled.view file which could be loaded by the CompiledView handler: $ bin/openresty compile '/=/view/a/b?c=d' '/=/view/f/z/okay?foo=bar'
  • perl minisql compiler - added support for operators @ and ~
  • haskell restyscript compiler - added support for type signature to the frags emitter, as in select * from foo(...) as (col1 type1, col2 type2) where ...

Documentation

Command-line frontend utility for the OpenResty server
Cheat sheet for OpenResty
OpenResty Account Admininstration
OpenSearch 体系结构白皮书(草案)
Captcha 图片生成和验证
Installation instructions for OpenResty servers
Install binary distributions of OpenResty
Metamodel for OpenResty backends
Overview of the OpenResty service platform
OpenResty REST Service Specification [draft]
OpenResty REST 协议白皮书(草案)
Introduction to the OpenResty test suite
Upgrading to new versions of OpenResty server
Zero to OpenResty for Perl programmers
中文版快速入门教程
Running the OpenResty test suite on Win32

Modules

General-purpose web service platform for web applications
class factory for OpenResty backend classes
Base class for OpenResty backend classes
Pg backend for OpenResty running via PL/Perl
OpenResty backend for PostgreSQL standalone databases
OpenResty backend for the PostgreSQL PL/Proxy-based cluster databases
A mocked-up OpenResty backend for the Pg backend
Cache for OpenResty
Configure file reader for OpenResty
The main dispatcher for the OpenResty server
The action handler for OpenResty
The captcha handler for OpenResty
Handler for pre-compiled views
The feed handler for OpenResty
The login handler for OpenResty
The model handler for OpenResty
The role handler for OpenResty
The "unsafe" handler for OpenResty
The version handler for OpenResty
The view handler for OpenResty
OpenResty app class for inlined REST requrests
Various contraints used in the OpenResty server
OpenResty app class for inlined REST requrests
Perl wrapper for the restyscript compiler via IPC
RestyScript (for Views) compiler in pure Perl
SQL generator for insert statements
SQL generator for select statements
Base class for the various SQL generator classes
SQL generator for update statements
Standalone server based on HTTP::Server::Simple for OpenResty
Utility functions for OpenResty

Provides

in lib/OpenResty/FastCGI.pm
in lib/OpenResty/FeedWriter/RSS.pm
in lib/OpenResty/Handler/Base.pm
in lib/OpenResty/Handler/LastResponse.pm
in lib/OpenResty/Handler/Logout.pm
in lib/OpenResty/QuasiQuote/SQL.pm
in lib/OpenResty/QuasiQuote/Validator.pm
in lib/OpenResty/QuasiQuote/Validator/Compiler.pm
in lib/OpenResty/RestyScript/ViewUpgrade.pm
in lib/OpenResty/Script/Compile.pm
in lib/OpenResty/Script/Upgrade.pm
in lib/OpenResty/Shell.pm
in lib/OpenResty/Shell/History.pm
in lib/OpenResty/QuasiQuote/Validator/Compiler.pm
in lib/WWW/OpenResty/Embedded.pm

Other files