This website requires JavaScript.
Explore
Help
Sign In
walkero
/
nghttp2
Watch
1
Star
0
Fork
You've already forked nghttp2
0
Code
Issues
Pull Requests
Projects
Releases
1
Wiki
Activity
aacac613af
nghttp2
/
integration-tests
/
req-set-header.rb
8 lines
92 B
Ruby
Raw
Normal View
History
Unescape
Escape
nghttpx: Change mruby script handling This commit changes nghttpx's mruby script handling. Previously we have 2 options to specify the mruby script file to be run on request and on response. Now they are merged into 1 option, namely --mruby-file. It now must return object. On request, the object's on_req(env) method is invoked with env object. Similarly, on response, the object's on_resp(env) method is invoked. The specification of Env object has not changed.
2015-10-05 17:10:42 +02:00
class
App
def
on_req
(
env
)
env
.
req
.
set_header
"
User-Agent
"
,
"
mruby
"
end
integration: Add mruby tests
2015-09-03 19:52:19 +02:00
end
nghttpx: Change mruby script handling This commit changes nghttpx's mruby script handling. Previously we have 2 options to specify the mruby script file to be run on request and on response. Now they are merged into 1 option, namely --mruby-file. It now must return object. On request, the object's on_req(env) method is invoked with env object. Similarly, on response, the object's on_resp(env) method is invoked. The specification of Env object has not changed.
2015-10-05 17:10:42 +02:00
App
.
new