Sha256: 5214d635c1473924c1d98967d50322e2c1cfc6e07e800081cb1d82fb4b5647a4

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 Bytes

Contents

# llhttp-ffi

Ruby FFI bindings for [llhttp](https://github.com/nodejs/llhttp).

## Install

```
gem install llhttp-ffi
```

## Usage

```ruby
require "llhttp"

# Define a delegate class for handling callbacks:
#
class Delegate < LLHttp::Delegate
  def on_message_begin
    ...
  end
end

delegate = Delegate.new

# Create a parser:
#
parser = LLHttp::Parser.new(delegate)

# Parse a request:
#
parser << "GET / HTTP/1.1\r\n\r\n"

# Reset the parser for the next request:
#
parser.reset
```

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/llhttp-ffi-0.4.0/README.md
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/llhttp-ffi-0.4.0/README.md
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/llhttp-ffi-0.4.0/README.md
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/llhttp-ffi-0.5.0/README.md
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/llhttp-ffi-0.4.0/README.md
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/llhttp-ffi-0.4.0/README.md
direct7-0.0.11 vendor/bundle/ruby/2.7.0/gems/llhttp-ffi-0.4.0/README.md
llhttp-ffi-0.5.0 README.md
llhttp-ffi-0.4.0 README.md