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
4bb88b35ec
nghttp2
/
integration-tests
/
resp-set-header.rb
8 lines
89 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_resp
(
env
)
env
.
resp
.
set_header
"
Alpha
"
,
"
bravo
"
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