2015-09-01 17:19:32 +02:00
|
|
|
/*
|
|
|
|
* nghttp2 - HTTP/2 C Library
|
|
|
|
*
|
|
|
|
* Copyright (c) 2015 Tatsuhiro Tsujikawa
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
* the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
#ifndef SHRPX_MRUBY_MODULE_H
|
|
|
|
#define SHRPX_MRUBY_MODULE_H
|
|
|
|
|
|
|
|
#include "shrpx.h"
|
|
|
|
|
|
|
|
#include <mruby.h>
|
|
|
|
|
2015-09-02 15:38:57 +02:00
|
|
|
#include "http2.h"
|
|
|
|
|
2015-09-01 17:19:32 +02:00
|
|
|
using namespace nghttp2;
|
|
|
|
|
|
|
|
namespace shrpx {
|
|
|
|
|
2015-09-04 16:56:07 +02:00
|
|
|
class Downstream;
|
|
|
|
|
2015-09-01 17:19:32 +02:00
|
|
|
namespace mruby {
|
|
|
|
|
2015-10-05 17:10:42 +02:00
|
|
|
mrb_value init_module(mrb_state *mrb);
|
2015-09-01 17:19:32 +02:00
|
|
|
|
2015-09-04 16:56:07 +02:00
|
|
|
void delete_downstream_from_module(mrb_state *mrb, Downstream *downstream);
|
|
|
|
|
2016-03-09 13:15:32 +01:00
|
|
|
mrb_value create_headers_hash(mrb_state *mrb, const HeaderRefs &headers);
|
2015-09-02 15:38:57 +02:00
|
|
|
|
2015-09-01 17:19:32 +02:00
|
|
|
} // namespace mruby
|
|
|
|
|
|
|
|
} // namespace shrpx
|
|
|
|
|
|
|
|
#endif // SHRPX_MRUBY_MODULE_H
|