Add another warning about mruby

This commit is contained in:
Tatsuhiro Tsujikawa 2017-10-29 16:18:20 +09:00
parent 8e06fe4971
commit d4a69658a1
1 changed files with 8 additions and 0 deletions

View File

@ -282,6 +282,14 @@ MRUBY SCRIPTING
The current mruby extension API is experimental and not frozen. The
API is subject to change in the future release.
.. warning::
Almost all string value returned from method, or attribute is a
fresh new mruby string, which involves memory allocation, and
copies. Therefore, it is strongly recommended to store a return
value in a local variable, and use it, instead of calling method or
accessing attribute repeatedly.
nghttpx allows users to extend its capability using mruby scripts.
nghttpx has 2 hook points to execute mruby script: request phase and
response phase. The request phase hook is invoked after all request