Sha256: b94c572c97a5dab511f31759e20dc95ca77bda66f5c2c044f5502506dee4ca9f

Contents?: true

Size: 492 Bytes

Versions: 6

Compression:

Stored size: 492 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.finish
```

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
llhttp-ffi-0.3.1 README.md
llhttp-ffi-0.3.0 README.md
llhttp-ffi-0.2.0 README.md
llhttp-ffi-0.1.0 README.md
llhttp-ffi-0.0.1 README.md
llhttp-ffi-0.0.0 README.md