We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a65a84 commit f4eaf20Copy full SHA for f4eaf20
2 files changed
gems/llhttp/0.6/_test/test.rb
@@ -0,0 +1,8 @@
1
+require "llhttp"
2
+
3
+parser = LLHttp::Parser.new(LLHttp::Delegate.new, type: :response)
4
+parser.reset
5
+parser << "HTTP/1.1 200 OK\r\n\r\n"
6
+parser.status_code
7
+parser.http_major
8
+parser.http_minor
gems/llhttp/0.6/llhttp.rbs
@@ -0,0 +1,17 @@
+module LLHttp
+ class Error < StandardError
+ end
+ class Parser
+ def initialize: (untyped delegate, ?type: Symbol) -> void
+ def reset: () -> void
+ def <<: (String data) -> void
9
+ def status_code: () -> Integer
10
+ def http_major: () -> Integer
11
+ def http_minor: () -> Integer
12
13
14
+ class Delegate
15
+ def initialize: () -> void
16
17
+end
0 commit comments