Sha256: a83849c43a217399bf19e5e39056e14e14c07c6e32f504ece7d7be291b0b8f51

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

# llhttp

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

## Install

```
gem install llhttp
```

## 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

3 entries across 3 versions & 1 rubygems

Version Path
llhttp-0.6.0 README.md
llhttp-0.5.0 README.md
llhttp-0.4.0 README.md