Class: Mxrb::Http::Request

Inherits:
Data
  • Object
show all
Defined in:
lib/mxrb/http/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



17
18
19
# File 'lib/mxrb/http/server.rb', line 17

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



17
18
19
# File 'lib/mxrb/http/server.rb', line 17

def headers
  @headers
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



17
18
19
# File 'lib/mxrb/http/server.rb', line 17

def path
  @path
end

#queryObject (readonly)

Returns the value of attribute query

Returns:

  • (Object)

    the current value of query



17
18
19
# File 'lib/mxrb/http/server.rb', line 17

def query
  @query
end

#request_methodObject (readonly)

Returns the value of attribute request_method

Returns:

  • (Object)

    the current value of request_method



17
18
19
# File 'lib/mxrb/http/server.rb', line 17

def request_method
  @request_method
end

Instance Method Details

#[](name) ⇒ Object



18
# File 'lib/mxrb/http/server.rb', line 18

def [](name) = headers[name]