Parent

Methods

Http::ParserError

An exception class for HTTP parser errors. Includes an HTTP Error Code number that corresponds to the difficulty parsing (ie. 414 for Request-URI Too Long)

Attributes

code[R]

The error code that corresponds to the parsing error.

headers[R]

Headers that should be sent back with the error reply as a hash.

Public Class Methods

new(string = "Bad Request", code = 400, headers = {}) click to toggle source
# File lib/http/parser.rb, line 19
def initialize(string = "Bad Request", code = 400, headers = {})
  super(string)
  @code = code
  @headers = headers
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.