Commit 0a65a84
authored
Add llhttp-ffi gem (#1030)
* Add llhttp-ffi gem
Minimal stubs for LLHttp::Parser, LLHttp::Delegate, and LLHttp::Error —
just the surface referenced by the http gem's bundled sig/http.rbs
(class Handler < LLHttp::Delegate, attr_reader parser: LLHttp::Parser)
plus the Parser methods http's Response::Parser calls.
Unblocks Steep users of the http gem, which otherwise fails signature
load with RBS::NoSuperclassFoundError on LLHttp::Delegate.
* Simplify test by removing the Delegate subclass
Use LLHttp::Delegate.new directly instead of defining a subclass in the
test. Drops the companion test.rbs since there's no custom Ruby class
left to declare. Steep already validates the subclass case when it
loads http.rbs (class Handler < LLHttp::Delegate), so the test doesn't
need to exercise it too.1 parent 2912890 commit 0a65a84
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments