Module: FFI::HTTP::Parser

Extended by:
Library
Defined in:
lib/ffi/http/parser/types.rb,
lib/ffi/http/parser/parser.rb,
lib/ffi/http/parser/version.rb,
lib/ffi/http/parser/instance.rb,
lib/ffi/http/parser/settings.rb

Defined Under Namespace

Classes: Instance, Settings

Constant Summary collapse

HTTP_MAX_HEADER_SIZE =

Maximum header size

(80 * 1024)
METHODS =

HTTP Methods

enum :http_method, [
  :DELETE,
  :GET,
  :HEAD,
  :POST,
  :PUT,
  # pathological
  :CONNECT,
  :OPTIONS,
  :TRACE,
  # webdav
  :COPY,
  :LOCK,
  :MKCOL,
  :MOVE,
  :PROPFIND,
  :PROPPATCH,
  :UNLOCK,
  # subversion
  :REPORT,
  :MKACTIVITY,
  :CHECKOUT,
  :MERGE,
  # upnp
  :MSEARCH,
  :NOTIFY,
  :SUBSCRIBE,
  :UNSUBSCRIBE
]
TYPES =

HTTP Parser types

enum :http_parser_type, [:request, :response, :both]
VERSION =

ffi-http-parser version

"0.2.0"

Class Method Summary collapse

Class Method Details

.new(&block) ⇒ Instance

Creates a new Parser.

Returns:

See Also:



25
26
27
# File 'lib/ffi/http/parser/parser.rb', line 25

def self.new(&block)
  Instance.new(&block)
end