Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions gems/llhttp/0.6/_test/test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require "llhttp"

parser = LLHttp::Parser.new(LLHttp::Delegate.new, type: :response)
parser.reset
parser << "HTTP/1.1 200 OK\r\n\r\n"
parser.status_code
parser.http_major
parser.http_minor
17 changes: 17 additions & 0 deletions gems/llhttp/0.6/llhttp.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module LLHttp
class Error < StandardError
end
Comment on lines +1 to +3
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description references gems/http/.../sig/http.rbs (and http 6.x) as the consumer of these stubs, but in this repo gems/http currently only contains 5.1/http.rbs and there are no LLHttp references under gems/http. Consider updating the PR description to clarify that this stub is intended to satisfy the upstream http gem 6.x bundled signatures (not present in this repo), or add/update the corresponding gems/http entry if that was the intent.

Copilot uses AI. Check for mistakes.

class Parser
def initialize: (untyped delegate, ?type: Symbol) -> void
def reset: () -> void
def <<: (String data) -> void
def status_code: () -> Integer
def http_major: () -> Integer
def http_minor: () -> Integer
end

class Delegate
def initialize: () -> void
end
end
Loading