From 77e50caaf2ef81cd91075cf836fed0e75718ffb4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 23:12:02 +0200 Subject: Adding debian version 1.8.3-2. Signed-off-by: Daniel Baumann --- .../vendor-h2o/doc/configure/mruby_directives.html | 144 +++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 debian/vendor-h2o/doc/configure/mruby_directives.html (limited to 'debian/vendor-h2o/doc/configure/mruby_directives.html') diff --git a/debian/vendor-h2o/doc/configure/mruby_directives.html b/debian/vendor-h2o/doc/configure/mruby_directives.html new file mode 100644 index 0000000..2a188a5 --- /dev/null +++ b/debian/vendor-h2o/doc/configure/mruby_directives.html @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + +Mruby Directives - Configure - H2O - the optimized HTTP/2 server + + +
+
+ +

+H2O +

+

the optimized HTTP/1.x, HTTP/2 server

+ + +
+ +
+ +
+
+
+Powered by Oktavia +
+
+ + +
+ + + + + + + + + + + + +
+ +

+Configure > +Mruby Directives +

+ + +

+The following are the configuration directives of the mruby handler. +Please refer to Using mruby to find out how to write handlers using mruby. +

+ + + +
+
Description:
+
+

+Upon start-up evaluates given mruby expression, and uses the returned mruby object to handle the incoming requests. + +

+ + +
+
Example. Hello-world in mruby
+
mruby.handler: |
+  Proc.new do |env|
+    [200, {'content-type' => 'text/plain'}, ["Hello world\n"]]
+  end
+
+
+ + +

+Note that the provided expression is evaluated more than once (typically for every thread that accepts incoming connections). +

+ +
+
Level:
+
path
+
See also:
+
mruby.handler-file +
+
+ + + +
+
Description:
+
+

+Upon start-up evaluates given mruby file, and uses the returned mruby object to handle the incoming requests. + +

+ + +
+
Example. Hello-world in mruby
+
mruby.handler-file: /path/to/my-mruby-handler.rb
+
+
+ + +

+Note that the provided expression is evaluated more than once (typically for every thread that accepts incoming connections). +

+ +
+
Level:
+
path
+
See also:
+
mruby.handler +
+
+ + + + +
+ + + -- cgit v1.2.3