30 return mrb_iv_get(mrb,
self, mrb_intern_cstr(mrb,
"@frconfig"));
35 return mrb_iv_get(mrb,
self, mrb_intern_cstr(mrb,
"@request"));
40 return mrb_iv_get(mrb,
self, mrb_intern_cstr(mrb,
"@reply"));
45 return mrb_iv_get(mrb,
self, mrb_intern_cstr(mrb,
"@control"));
50 return mrb_iv_get(mrb,
self, mrb_intern_cstr(mrb,
"@session_state"));
55 mrb_sym sym = mrb_intern_cstr(mrb,
"@proxy_request");
56 if (mrb_iv_defined(mrb,
self, sym)) {
57 return mrb_iv_get(mrb,
self, sym);
59 return mrb_ary_new_capa(mrb, 0);
65 mrb_sym sym = mrb_intern_cstr(mrb,
"@proxy_reply");
66 if (mrb_iv_defined(mrb,
self, sym)) {
67 return mrb_iv_get(mrb,
self, sym);
69 return mrb_ary_new_capa(mrb, 0);
75 struct RClass *request;
77 request = mrb_define_class_under(mrb,
parent,
"Request", mrb->object_class);
static mrb_value mruby_request_reply(mrb_state *mrb, mrb_value self)
static mrb_value mruby_request_proxy_request(mrb_state *mrb, mrb_value self)
static mrb_value mruby_request_control(mrb_state *mrb, mrb_value self)
struct RClass * mruby_request_class(mrb_state *mrb, struct RClass *parent)
static mrb_value mruby_request_session_state(mrb_state *mrb, mrb_value self)
static mrb_value mruby_request_frconfig(mrb_state *mrb, mrb_value self)
static mrb_value mruby_request_request(mrb_state *mrb, mrb_value self)
static mrb_value mruby_request_proxy_reply(mrb_state *mrb, mrb_value self)
Translates requests between the server an an mruby interpreter.