diff --git a/ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java b/ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java index 0126ef4..d2b5b04 100644 --- a/ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java +++ b/ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java @@ -29,6 +29,11 @@ public class RubyHttpParser extends RubyObject { + @JRubyMethod(name = "strict?", module = true) + public static IRubyObject strict(IRubyObject recv) { + return recv.getRuntime().newBoolean(true); + } + public static ObjectAllocator ALLOCATOR = new ObjectAllocator() { public IRubyObject allocate(Ruby runtime, RubyClass klass) { return new RubyHttpParser(runtime, klass);