Class: WebSocket::HTTP::Request

Inherits:
Object
  • Object
show all
Includes:
Headers
Defined in:
lib/websocket/http/request.rb

Constant Summary collapse

REQUEST_LINE =
/^(OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT) ([\x21-\x7e]+) (HTTP\/[0-9]+\.[0-9]+)$/
REQUEST_TARGET =
/^(.*?)(\?(.*))?$/
RESERVED_HEADERS =
%w[content-length content-type]

Constants included from Headers

Headers::CR, Headers::HEADER_LINE, Headers::LF, Headers::MAX_LINE_LENGTH

Instance Attribute Summary collapse

Attributes included from Headers

#headers

Method Summary

Methods included from Headers

#complete?, #error?, #initialize, #parse

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



11
12
13
# File 'lib/websocket/http/request.rb', line 11

def env
  @env
end