matsumoto-r/ngx_mruby — pull request #4 by cubicdaiya (2012-12-23 13:14:35+00:00)
Title: add hooks and refactoring

I added hooks for following phases.(The word in brackets is the directive name)

* NGX_HTTP_POST_READ_PHASE(mruby_post_read_request)
* NGX_HTTP_SERVER_REWRITE_PHASE(mruby_server_rewrite_request)
* NGX_HTTP_REWRITE_PHASE(mruby_rewrite_request)
* NGX_HTTP_LOG_PHASE(mruby_log_handler)

And I refactored ngx_mruby.

* rename directive from camel case to snake case
* move functions related mruby from ngx_http_mruby_module.c to ngx_http_mruby.(c|h)