matsumoto-r/ngx_mruby — pull request #56 by charlescui (2013-06-27 14:22:16+00:00)
Title: ake ngx_mruby can read nginx build in variable and request variable.

```nginx

# vars
location /vars {
# http://localhost/vars?version=ngx_mruby1.0
set $foo "mruby";
mruby_content_handler_code '
r = Nginx::Request.new()
r.content_type = "text/html"
Nginx.rputs "#{r.var.arg_version}
"
Nginx.rputs "#{r.var.host}
"
Nginx.rputs "#{r.var.foo}
"
Nginx.rputs "#{r.var.uri}
"
Nginx.rputs "#{r.var.http_user_agent}
"
Nginx.return Nginx::NGX_HTTP_OK
';
}
```