Class: Mxrb::RubyApp::RackAdapter::Request

Inherits:
Struct
  • Object
show all
Defined in:
lib/mxrb/ruby_app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



1213
1214
1215
# File 'lib/mxrb/ruby_app.rb', line 1213

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



1213
1214
1215
# File 'lib/mxrb/ruby_app.rb', line 1213

def headers
  @headers
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



1213
1214
1215
# File 'lib/mxrb/ruby_app.rb', line 1213

def path
  @path
end

#queryObject

Returns the value of attribute query

Returns:

  • (Object)

    the current value of query



1213
1214
1215
# File 'lib/mxrb/ruby_app.rb', line 1213

def query
  @query
end

#request_methodObject

Returns the value of attribute request_method

Returns:

  • (Object)

    the current value of request_method



1213
1214
1215
# File 'lib/mxrb/ruby_app.rb', line 1213

def request_method
  @request_method
end

Instance Method Details

#[](name) ⇒ Object



1214
# File 'lib/mxrb/ruby_app.rb', line 1214

def [](name) = headers[name]