Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
d20229d9
Commit
d20229d9
authored
Sep 03, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Handle block is not passed
parent
e06af025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/shrpx_mruby_module.cc
src/shrpx_mruby_module.cc
+5
-1
No files found.
src/shrpx_mruby_module.cc
View file @
d20229d9
...
@@ -44,6 +44,10 @@ mrb_value run(mrb_state *mrb, mrb_value self) {
...
@@ -44,6 +44,10 @@ mrb_value run(mrb_state *mrb, mrb_value self) {
mrb_value
b
;
mrb_value
b
;
mrb_get_args
(
mrb
,
"&"
,
&
b
);
mrb_get_args
(
mrb
,
"&"
,
&
b
);
if
(
mrb_nil_p
(
b
))
{
return
mrb_nil_value
();
}
auto
module
=
mrb_module_get
(
mrb
,
"Nghttpx"
);
auto
module
=
mrb_module_get
(
mrb
,
"Nghttpx"
);
auto
request_class
=
mrb_class_get_under
(
mrb
,
module
,
"Request"
);
auto
request_class
=
mrb_class_get_under
(
mrb
,
module
,
"Request"
);
auto
response_class
=
mrb_class_get_under
(
mrb
,
module
,
"Response"
);
auto
response_class
=
mrb_class_get_under
(
mrb
,
module
,
"Response"
);
...
@@ -57,7 +61,7 @@ mrb_value run(mrb_state *mrb, mrb_value self) {
...
@@ -57,7 +61,7 @@ mrb_value run(mrb_state *mrb, mrb_value self) {
void
init_module
(
mrb_state
*
mrb
)
{
void
init_module
(
mrb_state
*
mrb
)
{
auto
module
=
mrb_define_module
(
mrb
,
"Nghttpx"
);
auto
module
=
mrb_define_module
(
mrb
,
"Nghttpx"
);
mrb_define_class_method
(
mrb
,
module
,
"run"
,
run
,
MRB_ARGS_
BLOCK
());
mrb_define_class_method
(
mrb
,
module
,
"run"
,
run
,
MRB_ARGS_
NONE
());
init_request_class
(
mrb
,
module
);
init_request_class
(
mrb
,
module
);
init_response_class
(
mrb
,
module
);
init_response_class
(
mrb
,
module
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment