Exception: Net::HTTP::Pipeline::VersionError

Inherits:
Error
  • Object
show all
Defined in:
lib/net/http/pipeline.rb

Overview

Raised when an invalid version is given

Instance Attribute Summary

Attributes inherited from Error

#requests, #responses

Instance Method Summary collapse

Constructor Details

#initialize(requests, responses) ⇒ VersionError

Creates a new VersionError with a list of requests that have not been sent to the server and a list of responses that have been retrieved from the server.



77
78
79
# File 'lib/net/http/pipeline.rb', line 77

def initialize requests, responses
  super 'HTTP/1.1 or newer required', requests, responses
end