Sha256: b036025d6bae3bec9c87df867aa697e3d3d8dfc9d562c976aa3a2cd1815012de
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 Bytes
Contents
require 'ffi/http/parser/types' require 'ffi/http/parser/instance' module FFI module HTTP module Parser extend FFI::Library ffi_lib ['http_parser', 'http_parser.so.1'] attach_function :http_parser_init, [:pointer, :http_parser_type], :void attach_function :http_parser_execute, [:pointer, :pointer, :pointer, :size_t], :size_t attach_function :http_should_keep_alive, [:pointer], :int attach_function :http_method_str, [:http_method], :string # # Creates a new Parser. # # @return [Instance] # A new parser instance. # # @see Instance # def self.new(&block) Instance.new(&block) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-http-parser-0.2.0 | lib/ffi/http/parser/parser.rb |
ffi-http-parser-0.1.0 | lib/ffi/http/parser/parser.rb |